Skip to content

Commit

Permalink
oops: pull: Only protect folders containing new files
Browse files Browse the repository at this point in the history
  • Loading branch information
greezybacon committed Aug 5, 2018
1 parent 9725397 commit c63d3a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/bitpocket
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,11 @@ function analyse {
# that the modify times of them are not reverted to the remote ones
cat "$TMP_DIR/local-del" "$TMP_DIR/local-add" \
| while read -r line; do
echo "${line%/*}/"
# Only parent folders of files--not folders
if [[ "${line: -1}" != "/" ]]
then
echo "${line%/*}/"
fi
done \
| sort -u \
>> "$TMP_DIR/local-add"
Expand Down

0 comments on commit c63d3a1

Please sign in to comment.