Skip to content

Instantly share code, notes, and snippets.

@demosdemon
Created August 3, 2019 00:38
Show Gist options
  • Save demosdemon/e7a40cfb6dbe4f73467fa2bdb1e3b07b to your computer and use it in GitHub Desktop.
Save demosdemon/e7a40cfb6dbe4f73467fa2bdb1e3b07b to your computer and use it in GitHub Desktop.
Install drobo apps
#!/bin/sh
sudo /usr/bin/DroboApps.sh install
APPS_PATH="/mnt/DroboFS/Shares/DroboApps/"
find "$HOME/bin" -type l | while read -r link; do
dest="$(readlink "$link")"
case "$dest" in
$APPS_PATH*) ;;
*) continue ;;
esac
echo Removing "$link" '->' "$dest"
rm -f "$link"
done
for f in /mnt/DroboFS/Shares/DroboApps/*/bin/*; do
echo Linking "$f"
ln -fs "$f" ~/bin
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment