Rev | Line | |
---|
[1122] | 1 | #
|
---|
| 2 | # dasscm: check status
|
---|
| 3 | #
|
---|
[774] | 4 |
|
---|
[932] | 5 | CONFIG="/etc/dasscm.conf"
|
---|
| 6 |
|
---|
| 7 | if [ -r $CONFIG ]; then
|
---|
| 8 | source $CONFIG
|
---|
| 9 |
|
---|
| 10 | # check if a warn message is wanted
|
---|
| 11 | # and dasscm is already configured ($DASSCM_REPOSITORY_NAME)
|
---|
| 12 | if [ "$DASSCM_STATUS_AT_SHELL_LOGIN" = "yes" -a -n "$DASSCM_REPOSITORY_NAME" ]; then
|
---|
| 13 |
|
---|
| 14 | # check if write permissions are given
|
---|
| 15 | if [ -w "${DASSCM_LOCAL_REPOSITORY_BASE}/${DASSCM_REPOSITORY_NAME}" ]; then
|
---|
| 16 |
|
---|
| 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
|
---|
[774] | 27 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.