another fix

This commit is contained in:
speedie 2023-04-28 18:11:55 +02:00
parent 24ea28eb13
commit cfef4e073e

View file

@ -276,9 +276,15 @@ parse() {
case "$(printf "%s" "$sout" | awk '{ print $1 }')" in
"magnet") EXEC=torrent ;;
"www") EXEC=web ;;
"?") print_help "$@" && parse && exec_cmd ;;
"?") ;;
esac
if [ "$sout" = "?" ]; then
print_help "$@"
parse
exec_cmd
fi
printf "Type: '%s'\n" "$EXEC" >> "$LOGFILE"
# check for keywords