]> gitweb.fluxo.info Git - utils-tor.git/commitdiff
Ensure vimperator symlinks at tor-browser
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 5 Nov 2017 19:29:59 +0000 (17:29 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 5 Nov 2017 19:29:59 +0000 (17:29 -0200)
tor-browser

index 4c8a67f93b61af2e6273243dfa93cb684458f61a..abba46168d152c03c3bb880ddfbd91c25e75594f 100755 (executable)
@@ -14,8 +14,9 @@ if which torbrowser-launcher &> /dev/null; then
   if [ -e "$HOME/.vimperator" ] && [ -d "$FOLDER" ] && [ ! -e "$FOLDER/.vimperatorrc" ]; then
   (
     cd "$FOLDER"
-    ln -s "$HOME/.vimperator"
-    ln -s "$HOME/.vimperatorrc"
+    rm -f .vimperator .vimperatorrc
+    ln -sf "$HOME/.vimperator"
+    ln -sf "$HOME/.vimperatorrc"
   )
   fi