Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from github/username-with-space
Browse files Browse the repository at this point in the history
Installer script fixes
  • Loading branch information
mastahyeti authored Jul 25, 2017
2 parents d721f60 + 3816ba1 commit 338d0c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install-scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ cat > $LAUNCH_AGENT_PLIST << EOT
EOT

# Make sure the plist is owned by the user (otherwise it runs as root)
chown ${USER}:staff $LAUNCH_AGENT_PLIST
chown "${USER}:staff" $LAUNCH_AGENT_PLIST

# Launch the app
sudo -u${USER} launchctl load $LAUNCH_AGENT_PLIST
sudo -u "${USER}" launchctl load $LAUNCH_AGENT_PLIST

exit 0
2 changes: 1 addition & 1 deletion install-scripts/preinstall
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ KEXT="/Library/Extensions/softu2f.kext"
LAUNCH_AGENT_PLIST="$HOME/Library/LaunchAgents/com.github.SoftU2F.plist"

kextunload $KEXT || true
launchctl unload $LAUNCH_AGENT_PLIST || true
sudo -u "${USER}" launchctl unload $LAUNCH_AGENT_PLIST || true

0 comments on commit 338d0c9

Please sign in to comment.