1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

apply code review changes

This commit is contained in:
Martin Zuther
2019-12-30 00:11:36 +01:00
parent 9c9a750009
commit 499837bd80
4 changed files with 8 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ fi
# list all files or only those in the subdirectories below?
OPTION_LIST_ALL=0
for argument in ${YADM_HOOK_FULL_COMMAND[*]}; do
for argument in "${YADM_HOOK_FULL_COMMAND[@]}"; do
# mimick git ls-files by displaying all files when not on work
# path
if [ "$argument" = "-a" ] || [ $ON_WORK_PATH -eq 0 ]; then
@@ -63,7 +63,7 @@ while IFS= read -r filename; do
else
echo "$filename"
fi
done <<< "$(cat "$YADM_CHECKSUMS")"
done < "$YADM_CHECKSUMS"
# return original exit status of yadm command
exit "$YADM_HOOK_EXIT"