From 126831c1f5b548675f885f430cdf0f253307f61d Mon Sep 17 00:00:00 2001 From: RPICoder <68472305+techcoder20@users.noreply.github.com> Date: Fri, 5 Mar 2021 20:54:11 +0530 Subject: [PATCH] Kept $@ in "" The reason for doing this is that if we run a command like `pi-apps install 'Pi-Apps Terminal Plugin'` where the app name has spaces it wont work unless $@ is in "" --- apps/Pi-Apps Terminal Plugin/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/Pi-Apps Terminal Plugin/install b/apps/Pi-Apps Terminal Plugin/install index ec236da..e7ee528 100755 --- a/apps/Pi-Apps Terminal Plugin/install +++ b/apps/Pi-Apps Terminal Plugin/install @@ -13,7 +13,7 @@ pip3 install python-Levenshtein fuzzywuzzy || error "pip3 failed to python-Leven #Downloading papm file wget https://raw.githubusercontent.com/techcoder20/PiAppsTerminalAdvanced/main/PiAppsTerminalAdvanced.py -O "${DIRECTORY}/PiAppsTerminalAdvanced.py" || error "Failed to download PiAppsTerminalAdvanced.py" -echo "#!/bin/bash -#${DIRECTORY}/gui -python3 ${DIRECTORY}/PiAppsTerminalAdvanced.py "'$@' | sudo tee /usr/local/bin/pi-apps >/dev/null +echo '#!/bin/bash +#'${DIRECTORY}/gui' +python3 '${DIRECTORY}/PiAppsTerminalAdvanced.py' "$@"' | sudo tee /usr/local/bin/pi-apps >/dev/null sudo chmod +x /usr/local/bin/pi-apps