diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-16 16:16:11 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-16 16:16:11 +0200 | 
| commit | 2dab2233ef9cb54a3878e0120016d542045c7ee8 (patch) | |
| tree | 13f3f086adbe5edca4b0c6d3527bd040a50f627a /bin/menuscripts/tsh | |
| parent | 2a9d0908651ac236855fa515e14a83bada3ad7f9 (diff) | |
checkpoint
Diffstat (limited to 'bin/menuscripts/tsh')
| -rwxr-xr-x | bin/menuscripts/tsh | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/menuscripts/tsh b/bin/menuscripts/tsh index aac27ee..70e7ca8 100755 --- a/bin/menuscripts/tsh +++ b/bin/menuscripts/tsh @@ -5,8 +5,8 @@ PROG="$(basename "$0")"  # copy command and deps variable  deps="pup curl $MENUCMD" -LIBPFX=/home/aluc/.local/share/tsh -module='1337x.sh' # default module +MODULES_PATH=$HOME/.local/share/tsh +module='nyaa.sh' # default module  # Files  export tmp="/tmp/$PROG" @@ -83,7 +83,7 @@ cleanup ()  	done  } -list_modules () { find -L "$LIBPFX" -type f -printf "%f\n"; } +list_modules () { find -L "$MODULES_PATH" -type f -printf "%f\n"; }  # get a query from user based on MENUCMD  get_query () @@ -179,7 +179,7 @@ then  	# Get results  	rm -f "$results" "$links"  	# shellcheck source=/usr/local/lib/$PROG/nyaa.sh disable=SC1091 -	. "$LIBPFX/$module" +	. "$MODULES_PATH/$module"  	[ -f "$results" ] || die "No results."  	# Save which module was used @@ -190,7 +190,7 @@ fi  # acquire get_magnet function  # shellcheck source=/usr/local/lib/$PROG/nyaa.sh disable=SC1091 -getfunctions=1 . "$LIBPFX/$module" +getfunctions=1 . "$MODULES_PATH/$module"  # select result from "$results"  for choice in $(select_result | xargs)  | 
