Fix-usb-sleep icon indicating copy to clipboard operation
Fix-usb-sleep copied to clipboard

fixUSB.sh fails when run in a directory with spaces in it

Open sparagi opened this issue 5 years ago • 0 comments

I cloned Fix-usb- sleep from https://github.com/syscl/Fix-usb-sleep into my usual stash of installers. The path to this stash has spaces in the name (e.g./Users/Shared/X Department X/Fix-usb-sleep). I got this output:

./fixUSB.sh: line 138: [: too many arguments [ OK ] Generate configuration file of sleepwatcher launch daemon. [ OK ] Generate script to load RTWlanUSB upon sleep. [ ---> ] Installing external devices sleep patch... [FAILED] Department. usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory [ OK ] Install configuration of sleepwatcher daemon. [ OK ] Install sleep script. [ OK ] Install wake script. [ OK ] Fix the permissions of /etc/sysclusbfix.sleep. [ OK ] Fix the permissions of /etc/sysclusbfix.wake. [ OK ] Trigger startup service of syscl.usb.fix. [ OK ] Clean up. [ Note ] DONE! Sleep to see change. [ Note ] Feel free to post issue on https://github.com/syscl/Fix-usb-sleep.

sparagi avatar Jul 15 '19 18:07 sparagi