aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-03-05 20:47:08 -0600
committerToby Vincent <tobyv@tobyvin.dev>2024-03-05 20:47:08 -0600
commit78e6b401dcfa727d1cc1e2c73e28ac7b5e1bb005 (patch)
tree5dc0be3fdb4a800b78ad4110bf57570d22d85543
parent11c0d95039d32f52ed9982b2f51648defc91aeeb (diff)
fix(firefox): skip symlink if exists
-rwxr-xr-xfirefox/install.sh4
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