diff options
Diffstat (limited to 'archive-dl')
-rwxr-xr-x | archive-dl | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -3,14 +3,19 @@ input=$1 type=$2 -check() -if [ -n "$input" ]; then +# This is a function: +# It checks if the user has input data. +check() { +if [ -n "$1" ]; then echo else - echo "Please enter URL"; + echo "Please enter URL/File type."; exit 0 fi +} +check $input +check $type echo $input echo $type |