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 ""
pull/422/head
RPICoder 3 years ago committed by GitHub
parent 823e6e277c
commit 126831c1f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save