diff options
-rwxr-xr-x | firefox/install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firefox/install.sh b/firefox/install.sh index 0694ed8..9d70feb 100755 --- a/firefox/install.sh +++ b/firefox/install.sh @@ -12,6 +12,8 @@ printf "%s: Installing user.js\n" "$0" profile=$(grep -Po -m1 'Default=\K.*' <~/.mozilla/firefox/profiles.ini) if [ -d "$XDG_CONFIG_HOME"/firefox ]; then for item in "$XDG_CONFIG_HOME"/firefox/*; do - ln -vst ~/.mozilla/firefox/"$profile" "$item" + if [ ! -L ~/.mozilla/firefox/"$profile"/"${item##*/}" ]; then + ln -vst ~/.mozilla/firefox/"$profile" "$item" + fi done fi |