1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash if [[ ! -d /usr/lib/firefox ]]; then exit 0 fi # Walk the /usr/lib/firefox hierarchy and symlink everything exec find /usr/lib/firefox -type f \ -exec bash -c ' set -eu link="/usr/lib/firefox-developer-edition/${1#/usr/lib/firefox/}" mkdir -pv "$(dirname "${link}")" ln -s -v -T "$1" "${link}" ' _ '{}' ';'