commit 2e880aaba747490951c6297756b4d3521dd799ee parent 30de250afc8f15a0d5a5e26b47d7ca4e6d75932f Author: oscarbenedito <oscar@oscarbenedito.com> Date: Sun, 14 Jun 2020 13:33:07 +0200 Backup script doesn't depend on KeePassXC filename Now the script retrieves de AppImage location from the `.desktop` file (which won't change between updates). Diffstat:
M | dot_local/bin/executable_,backup-vc-10-11 | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dot_local/bin/executable_,backup-vc-10-11 b/dot_local/bin/executable_,backup-vc-10-11 @@ -8,7 +8,9 @@ read PW stty echo printf "\n" -alias keepassxc="$XDG_DATA_HOME/keepassxc/KeePassXC-2.5.4-x86_64.AppImage" +# get keepassxc executable location +alias keepassxc="$(grep '^Exec' $HOME/.local/share/applications/keepassxc.desktop \ + | tail -1 | sed 's/^Exec=//;s/%.//;s/^"//g;s/" *$//g') "$@"" printf "\nObtaining encryption passwords..." PW1="$(echo "$PW" | keepassxc cli show "$KDBX" \