Skip to content

Commit

Permalink
Updated install.sh with correct version!
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kendall committed Oct 13, 2015
1 parent 06a4ee2 commit 949d566
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,26 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi

# Copy files:
mkdir -p /usr/local/forceFullDesktopBar
if [ "$?" -ne 0 ]; then echo "Failed to create /usr/local/forceFullDesktopBar"; exit 1; fi

cp forceFullDesktopBar /usr/local/forceFullDesktopBar/
if [ "$?" -ne 0 ]; then echo "Could not copy forceFullDesktopBar. Make sure you're running this script for the directory that contains: forceFullDesktopBar, bootstrap.dylib, dockInjection.dylib, net.briankendall.forceFullDesktopBar.plist "; exit 1; fi

cp bootstrap.dylib /usr/local/forceFullDesktopBar/
if [ "$?" -ne 0 ]; then echo "Could not copy bootstrap.dylib. Make sure you're running this script for the directory that contains: forceFullDesktopBar, bootstrap.dylib, dockInjection.dylib, net.briankendall.forceFullDesktopBar.plist "; exit 1; fi

cp dockInjection.dylib /usr/local/forceFullDesktopBar/
if [ "$?" -ne 0 ]; then echo "Could not copy dockInjection.dylib. Make sure you're running this script for the directory that contains: forceFullDesktopBar, bootstrap.dylib, dockInjection.dylib, net.briankendall.forceFullDesktopBar.plist "; exit 1; fi

# Copy and launch daemon using launchctl:
cp net.briankendall.forceFullDesktopBar.plist /Library/LaunchDaemons/
if [ "$?" -ne 0 ]; then echo "Could not copy LaunchDaemon plist. Make sure you're running this script for the directory that contains: forceFullDesktopBar, bootstrap.dylib, dockInjection.dylib, net.briankendall.forceFullDesktopBar.plist "; exit 1; fi

chown root:wheel /Library/LaunchDaemons/net.briankendall.forceFullDesktopBar.plist
chmod 644 /Library/LaunchDaemons/net.briankendall.forceFullDesktopBar.plist
launchctl load /Library/LaunchDaemons/net.briankendall.forceFullDesktopBar.plist
if [ "$?" -ne 0 ]; then echo "Failed to load the LaunchDaemon"; exit 1; fi

echo "Finished"
echo "Finished"

0 comments on commit 949d566

Please sign in to comment.