Browse Source

Little interactive script to update Bitwarden appimage link

Simon Watson 2 years ago
parent
commit
e7c58ef45d
1 changed files with 14 additions and 0 deletions
  1. 14 0
      link_bitwarden_app_image.sh

+ 14 - 0
link_bitwarden_app_image.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+
+BITWARDEN_PATH=$(find ~/Downloads | grep 'Bitwarden.*.AppImage')
+
+echo -n "Link $BITWARDEN_PATH to /usr/bin/ [y/n]: "
+read resp
+
+if [ "$resp" == "y" ]; then
+	echo "Linking $BITWARDEN_PATH to /usr/bin/Bitwarden"
+	sudo ln -f -s $BITWARDEN_PATH /usr/bin/Bitwarden 
+	exa -lah /usr/bin/Bitwarden
+else
+	echo "Not linking"
+fi