Skip to content

Commit

Permalink
changed the if-then statements at the end for better results
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Gafner committed Feb 20, 2019
1 parent 0db73f1 commit f30db55
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 @@ -210,31 +210,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 f30db55

Please sign in to comment.