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

Commit

Permalink
make sure LaunchAgents directory exists in postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
btoews committed Aug 7, 2017
1 parent dee71f0 commit 01eb13d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install-scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
set -e

KEXT="/Library/Extensions/softu2f.kext"
LAUNCH_AGENT_PLIST="$HOME/Library/LaunchAgents/com.github.SoftU2F.plist"
LAUCNH_AGENTS_DIR="$HOME/Library/LaunchAgents"
LAUNCH_AGENT_PLIST="$LAUCNH_AGENTS_DIR/com.github.SoftU2F.plist"

# Make sure the kext is loaded
kextutil $KEXT

# This directory should already exist, but some users have had issues with it
# being missing.
mkdir -p $LAUCNH_AGENTS_DIR

# Write a LaunchAgent plist so app starts at login
cat > $LAUNCH_AGENT_PLIST << EOT
<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit 01eb13d

Please sign in to comment.