making default selection in yes-no questions visible
This commit is contained in:
@@ -125,7 +125,7 @@ function checkfolder {
|
||||
FOLDER=$1
|
||||
# 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
|
||||
read -p "Destination folder \"$FOLDER\" already exists. Should it be emptied? [y/N]: " YN
|
||||
if [ $YN == "y" ]; then
|
||||
rm -rf $FOLDER
|
||||
mkdir $FOLDER
|
||||
@@ -385,11 +385,11 @@ until [ "$STATUS" == "F" ]; do
|
||||
done
|
||||
|
||||
|
||||
read -p "Download seems to be finished. Should the splitted files be rebuilt to the original big file again? [y/n] " YN
|
||||
read -p "Download seems to be finished. Should the splitted files be rebuilt to the original big file again? [y/N]: " YN
|
||||
if [ $YN == "y" ]; then
|
||||
# Destination file already exists
|
||||
if [ -e $BIGNAME ]; then
|
||||
read -p "Destination file already exists. Should it be overwritten? [y/n] " YN
|
||||
read -p "Destination file already exists. Should it be overwritten? [y/N]: " YN
|
||||
|
||||
if [ $YN == "y" ]; then
|
||||
cat $FOLDER/dl-* > $BIGNAME
|
||||
@@ -422,7 +422,7 @@ fi
|
||||
|
||||
|
||||
# Clean directories
|
||||
read -p "Clean the download directory and info.cfg file? [y/n] " YN
|
||||
read -p "Clean the download directory and info.cfg file? [y/N]: " YN
|
||||
if [ $YN == "y" ]; then
|
||||
rm $INFO
|
||||
rm -r $FOLDER
|
||||
|
||||
Reference in New Issue
Block a user