diff --git a/split-dl.sh b/split-dl.sh index ac68169..cd147b6 100755 --- a/split-dl.sh +++ b/split-dl.sh @@ -154,7 +154,7 @@ function checkfolder { # Check if folder already exists. If not, create it if [ -d $FOLDER ]; then read -p "Destination folder \"$FOLDER\" already exists. Should it be emptied? [y/N]: " YN - if [ $YN == "y" ]; then + if [ "$YN" == "y" ]; then rm -rf $FOLDER mkdir $FOLDER else