Changeset 1181 for dasscm/trunk/etc/profile.d/dasscm.sh
- Timestamp:
- Jun 10, 2015, 9:38:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/etc/profile.d/dasscm.sh
r1122 r1181 5 5 CONFIG="/etc/dasscm.conf" 6 6 7 if [ -r $CONFIG ]; then 8 source $CONFIG 7 if [ "$HOME" ]; then 8 if [ -r $CONFIG ]; then 9 . $CONFIG 9 10 10 11 12 11 # check if a warn message is wanted 12 # and dasscm is already configured ($DASSCM_REPOSITORY_NAME) 13 if [ "$DASSCM_STATUS_AT_SHELL_LOGIN" = "yes" -a -n "$DASSCM_REPOSITORY_NAME" ]; then 13 14 14 15 15 # check if write permissions are given 16 if [ -w "${DASSCM_LOCAL_REPOSITORY_BASE}/${DASSCM_REPOSITORY_NAME}" ]; then 16 17 17 # get dasscm status 18 # and print it, if a result is given 19 RESULT=`dasscm status` 20 if [ $? -ne 0 ]; then 21 printf "* DASSCM warnings *\n" 22 printf "$RESULT\n" 23 printf "* please use dasscm to check-in these changes *\n" 24 fi 25 fi 26 fi 18 # get dasscm status 19 # and print it, if a result is given 20 RESULT=`dasscm status` 21 if [ $? -ne 0 ]; then 22 printf "* DASSCM warnings *\n" 23 printf "$RESULT\n" 24 printf "* please use dasscm to check-in these changes *\n" 25 fi 26 fi 27 fi 28 fi 27 29 fi
Note:
See TracChangeset
for help on using the changeset viewer.