Skip to content

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

@sparagi

Description

@sparagi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions