Rev | Line | |
---|
[1122] | 1 | #
|
---|
| 2 | # dasscm: check status
|
---|
| 3 | #
|
---|
[774] | 4 |
|
---|
[932] | 5 | CONFIG="/etc/dasscm.conf"
|
---|
| 6 |
|
---|
[1181] | 7 | if [ "$HOME" ]; then
|
---|
| 8 | if [ -r $CONFIG ]; then
|
---|
| 9 | . $CONFIG
|
---|
[932] | 10 |
|
---|
[1181] | 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
|
---|
[932] | 14 |
|
---|
[1181] | 15 | # check if write permissions are given
|
---|
| 16 | if [ -w "${DASSCM_LOCAL_REPOSITORY_BASE}/${DASSCM_REPOSITORY_NAME}" ]; then
|
---|
[932] | 17 |
|
---|
[1181] | 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
|
---|
[774] | 29 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.