[__file] Treat pre-exists as a special case in gencode-remote as it should never get there
This commit is contained in:
parent
46d2487f08
commit
9eacba06bb
1 changed files with 30 additions and 26 deletions
|
@ -61,7 +61,7 @@ set_mode() {
|
|||
}
|
||||
|
||||
case "$state_should" in
|
||||
present|exists|pre-exists)
|
||||
present|exists)
|
||||
# Note: Mode - needs to happen last as a chown/chgrp can alter mode by
|
||||
# clearing S_ISUID and S_ISGID bits (see chown(2))
|
||||
for attribute in group owner mode; do
|
||||
|
@ -83,7 +83,11 @@ case "$state_should" in
|
|||
# set-attributes is created if file is created or uploaded in gencode-local
|
||||
fire_onchange=1
|
||||
fi
|
||||
;;
|
||||
|
||||
pre-exists)
|
||||
# pre-exists should never reach gencode-remote…
|
||||
exit 1
|
||||
;;
|
||||
|
||||
absent)
|
||||
|
|
Loading…
Reference in a new issue