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

Commit a48082d

Browse files
authored
Merge pull request #41 from github/fix-missing-kext-dir
Ensure kext directory exists
2 parents ef16c23 + 89a844d commit a48082d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

install-scripts/preinstall

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/bash
22

3-
KEXT="/Library/Extensions/softu2f.kext"
3+
KEXT_DIR="/Library/Extensions"
4+
KEXT="$KEXT_DIR/softu2f.kext"
45
LAUNCH_AGENT_PLIST="$HOME/Library/LaunchAgents/com.github.SoftU2F.plist"
56

7+
# This directory should already exist, but some users have had issues with it
8+
# being missing.
9+
mkdir -p $KEXT_DIR
10+
611
kextunload $KEXT || true
712
sudo -u "${USER}" launchctl unload $LAUNCH_AGENT_PLIST || true

0 commit comments

Comments
 (0)