Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created August 5, 2020 15:22
Show Gist options
  • Save danielecook/08632a82804a5af919e23fe479168d7b to your computer and use it in GitHub Desktop.
Save danielecook/08632a82804a5af919e23fe479168d7b to your computer and use it in GitHub Desktop.
Resolve symbolic link #bash
resolve-symbolic-link() {
if [ -L $1 ]; then
temp="$(readlink "$1")";
rm -rf "$1";
cp -rf "$temp" "$1";
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment