Skip to content

Instantly share code, notes, and snippets.

@midwire
Forked from jimjh/truecrypt_fix.bash
Created April 2, 2014 20:23
Show Gist options
  • Select an option

  • Save midwire/9942356 to your computer and use it in GitHub Desktop.

Select an option

Save midwire/9942356 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"
for lib in "${libs[@]}"
do
mv $lib "${truecrypt}/." && echo "Moved ${lib} to ${truecrypt}."
rm $lib
ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}."
done
@midwire

midwire commented Apr 2, 2014

Copy link
Copy Markdown
Author

Use this to fix truecrypt's havoc on brew doctor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment