summaryrefslogtreecommitdiff
path: root/bin/menuscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/menuscripts')
-rwxr-xr-xbin/menuscripts/tsh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/menuscripts/tsh b/bin/menuscripts/tsh
index 0e2b64d..d07d0d5 100755
--- a/bin/menuscripts/tsh
+++ b/bin/menuscripts/tsh
@@ -46,7 +46,6 @@ trap "exit 1" INT
trap "cleanup" EXIT
## OPTIONS
-skip=0
while getopts ":hm:rs:c:fd" opt; do
case $opt in
h)
@@ -107,7 +106,7 @@ done
[ "${error:-0}" -eq 1 ] && exit 1
# Get the torrents with module
-if [ $skip -eq 1 ]; then
+if [ "${skip:-0}" -eq 1 ]; then
module="$(tail -n 1 "$links")"
else
mkdir -p "$tmp"