aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-11-16 18:24:02 +0100
committerRasmus Steinke <rasi@xssn.at>2015-11-16 18:24:02 +0100
commit409586740044f808b77b4fd966bd8b6a00b9da10 (patch)
treebba715a5a9bbdd158df3339404e01263f79798f0
parentbafd1d76bee40cdffb18d3fdbb37b83000023dee (diff)
downloadrofi-pass-409586740044f808b77b4fd966bd8b6a00b9da10.tar.gz
fix alternative root directory1.3.1
-rwxr-xr-xrofi-pass12
1 files changed, 6 insertions, 6 deletions
diff --git a/rofi-pass b/rofi-pass
index 28867c9..7d37342 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -478,17 +478,17 @@ fi
# check if alternative root directory was given on commandline
if [[ $1 == "--last-used" || $1 == "--show-last" ]]; then
- root=$(awk -F ': ' '{ print $1 }' $HOME/.config/rofi-pass/last_used)
+ export root=$(awk -F ': ' '{ print $1 }' $HOME/.config/rofi-pass/last_used)
elif [[ -n "$2" && "$1" == "--root" ]]; then
- root="${2}"
+ export root="${2}"
elif [[ -n $root ]]; then
- root="${root}"
+ export root="${root}"
elif [[ -n ${PASSWORD_STORE_DIR} ]]; then
- root=${PASSWORD_STORE_DIR}
+ export root=${PASSWORD_STORE_DIR}
else
- root="$HOME/.password-store"
+ export root="$HOME/.password-store"
fi
-PASSWORD_STORE_DIR="${root}"
+export PASSWORD_STORE_DIR="${root}"
case $1 in
--insert)
insertPass