Skip to content

Commit

Permalink
fix: remove unwanted files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecavestro committed Jun 5, 2024
1 parent 75daffe commit 6372bd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions save.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ if [[ ! $base =~ $IGNORE_REGEX ]]; then
;;
*)
echo "$1 is neither an image nor a video"
rm -rf $(dirname $1)
;;
esac
else
echo "discarding $1"
rm -f $1
echo "Discarding $1"
rm -rf $(dirname $1)
fi

0 comments on commit 6372bd7

Please sign in to comment.