Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
XPH0816 authored Jan 1, 2023
1 parent 93ecbdf commit ac5e846
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ vendor = other

if [ -z ${INPUT_EXCLUDE+x} ]; then
rclone sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude-from=/rclone-filters.txt

else
if [[ "$(declare -p $INPUT_EXCLUDE)" =~ "declare -a" ]]; then
rclone sync --exclude "'$INPUT_EXCLUDE[*]'" woocart:$INPUT_REMOTE
rclone sync woocart:$INPUT_REMOTE --exclude "'$INPUT_EXCLUDE[*]'"
else
rclone sync --exclude $INPUT_EXCLUDE $INPUT_LOCAL woocart:$INPUT_REMOTE
rclone sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude $INPUT_EXCLUDE
fi
fi

0 comments on commit ac5e846

Please sign in to comment.