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 ac5e846 commit c3affff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ vendor = other
" > ~/.config/rclone/rclone.conf

if [ -z ${INPUT_EXCLUDE+x} ]; then
rclone sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude-from=/rclone-filters.txt
rclone -v sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude-from=/rclone-filters.txt
else
if [[ "$(declare -p $INPUT_EXCLUDE)" =~ "declare -a" ]]; then
rclone sync woocart:$INPUT_REMOTE --exclude "'$INPUT_EXCLUDE[*]'"
rclone -v sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude "'$INPUT_EXCLUDE[*]'"
else
rclone sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude $INPUT_EXCLUDE
rclone -v sync $INPUT_LOCAL woocart:$INPUT_REMOTE --exclude $INPUT_EXCLUDE
fi
fi

0 comments on commit c3affff

Please sign in to comment.