Skip to content

Instantly share code, notes, and snippets.

@JustJenFelice
Forked from trinitronx/truecrypt_fix.bash
Created July 14, 2014 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustJenFelice/9d00af246887275140f6 to your computer and use it in GitHub Desktop.
Save JustJenFelice/9d00af246887275140f6 to your computer and use it in GitHub Desktop.
#!/bin/bash
libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \
"/usr/local/lib/libosxfuse_i32.2.dylib" \
"/usr/local/lib/libosxfuse_i64.2.dylib" \
"/usr/local/lib/libmacfuse_i64.2.dylib" \
"/usr/local/lib/libosxfuse_i32.la" \
"/usr/local/lib/libosxfuse_i64.la" \
"/usr/local/lib/pkgconfig/osxfuse.pc" )
truecrypt="/Applications/TrueCrypt.app/Contents/Resources/Library"
[ ! -d $truecrypt ] && mkdir -p $truecrypt
for lib in "${libs[@]}"
do
mv $lib "${truecrypt}/" && echo "Moved ${lib} to ${truecrypt}." || echo "Problem moving: ${lib} to ${truecrypt}"
rm $lib || echo "Problem removing: ${lib}"
ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}." || echo "Problem symlinking ${lib}"
done
brew prune
brew doctor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment