summarylogtreecommitdiffstats
path: root/firefox-developer-edition-firefox-symlinks-create.bash
blob: 927f030a0a7cb3758065a182741690e049f51246 (plain)
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}"
    ' _ '{}' ';'