From 2e28a119ef88ad2ac2ca6cc174abfd30eaaa71a3 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Mon, 6 May 2019 23:22:47 +0300 Subject: [PATCH] termux-tools: prevent word-splitting of arguments with space --- packages/termux-tools/pkg | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/termux-tools/pkg b/packages/termux-tools/pkg index c6baab2cc..6f97a0aae 100755 --- a/packages/termux-tools/pkg +++ b/packages/termux-tools/pkg @@ -31,16 +31,16 @@ CMD="$1" shift 1 case "$CMD" in - f*) dpkg -L $@;; + f*) dpkg -L "$@";; h*) show_help;; - add|i*) assert_not_root; apt update; apt install $@;; - list-a*) apt list $@;; - list-i*) apt list --installed $@;; - rei*) assert_not_root; apt install --reinstall $@;; - se*) assert_not_root; apt update; apt search $@;; - sh*) apt show $@;; - un*|rem*|rm|del*) assert_not_root; apt remove $@;; - up*) assert_not_root; apt update; apt full-upgrade $@;; + add|i*) assert_not_root; apt update; apt install "$@";; + list-a*) apt list "$@";; + list-i*) apt list --installed "$@";; + rei*) assert_not_root; apt install --reinstall "$@";; + se*) assert_not_root; apt update; apt search "$@";; + sh*) apt show "$@";; + un*|rem*|rm|del*) assert_not_root; apt remove "$@";; + up*) assert_not_root; apt update; apt full-upgrade "$@";; *) echo "Unknown command: '$CMD' (run 'pkg help' for usage information)";; esac