Skip to content

Commit

Permalink
Merge pull request #29 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
  • Loading branch information
BrettSheleski authored Feb 20, 2019
2 parents 2f5fefe + f30db55 commit 1099ec6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions comchap
Original file line number Diff line number Diff line change
Expand Up @@ -224,31 +224,31 @@ else
echo No commercials found: "$infile" 1>&3 2>&4 >&2
fi

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 1099ec6

Please sign in to comment.