mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Run hooks on MINGW* systems
MINGW* systems don't have a +x flag. Everything is executable if it exists (as far as I know). This, while trying to run hooks on MINGW* systems just check for the existence of the file instead of -x
This commit is contained in:
parent
402b57880d
commit
ec65801d9b
2
yadm
2
yadm
@ -848,7 +848,7 @@ function invoke_hook() {
|
|||||||
exit_status="$2"
|
exit_status="$2"
|
||||||
hook_command="$YADM_DIR/hooks/${mode}_$HOOK_COMMAND"
|
hook_command="$YADM_DIR/hooks/${mode}_$HOOK_COMMAND"
|
||||||
|
|
||||||
if [ -x "$hook_command" ] ; then
|
if [ -x "$hook_command" ] || ( [[ $OPERATING_SYSTEM == MINGW* ]] && [ -f "$hook_command" ] ) ; then
|
||||||
debug "Invoking hook: $hook_command"
|
debug "Invoking hook: $hook_command"
|
||||||
|
|
||||||
#; expose some internal data to all hooks
|
#; expose some internal data to all hooks
|
||||||
|
Loading…
Reference in New Issue
Block a user