trying to fix command line for Scanner

This commit is contained in:
Roy 2024-01-22 20:58:15 -08:00 committed by GitHub
parent 9e523c3217
commit fe297a5784
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1163,9 +1163,14 @@ if [[ $options == "Move to SD Card" ]]; then
exit 1
fi
# Get the command line arguments
args=("$@")
# Check if the Stop NSLGameScanner option was passed as a command line argument or clicked in the GUI
if [[ " ${args[@]} " =~ " Stop NSLGameScanner " ]] || [[ $options == "Stop NSLGameScanner" ]]; then
#Delete the NSLGameScanner.py
rm -rf ${logged_in_home}/.config/systemd/user/NSLGameScanner.py
# Delete the service file
rm -rf ${logged_in_home}/.config/systemd/user/nslgamescanner.service