Skip to content

Commit

Permalink
Merge pull request #30 from mgafner/remove-files
Browse files Browse the repository at this point in the history
changed the if-then statements at the end for better results (for comcut)
  • Loading branch information
BrettSheleski authored Feb 21, 2019
2 parents 1b020df + bbd05e0 commit 7012024
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions comcut
Original file line number Diff line number Diff line change
Expand Up @@ -227,31 +227,31 @@ do
rm "$i"
done

if $deleteedl ; then
if [ "$deleteedl" == true ] ; then
if [ -f "$edlfile" ] ; then
rm "$edlfile";
fi
fi

if $deletemeta ; then
if [ "$deletemeta" == true ] ; then
if [ -f "$metafile" ]; then
rm "$metafile";
fi
fi

if $deletelog ; then
if [ "$deletelog" == true ] ; then
if [ -f "$logfile" ]; then
rm "$logfile";
fi
fi

if $deletelogo ; then
if [ "$deletelogo" == true ] ; then
if [ -f "$logofile" ]; then
rm "$logofile";
fi
fi

if $deletetxt ; then
if [ "$deletetxt" == true ] ; then
if [ -f "$txtfile" ]; then
rm "$txtfile";
fi
Expand Down

0 comments on commit 7012024

Please sign in to comment.