set copy command so defaulting works properly

This commit is contained in:
Joel Beckmeyer 2022-10-28 11:40:21 -04:00
parent 29decbf0c2
commit 5fc2f0a242

View File

@ -122,6 +122,7 @@ if [ "$typeisset" -eq 1 ] && [ "$copyisset" -eq 1 ]; then
exit 1 exit 1
elif [ "$typeisset" -eq 0 ] && [ "$copyisset" -eq 0 ]; then elif [ "$typeisset" -eq 0 ] && [ "$copyisset" -eq 0 ]; then
printf "neither -c/--copy or -t/--type passed. Defaulting to copying with wl-copy." printf "neither -c/--copy or -t/--type passed. Defaulting to copying with wl-copy."
copy_cmd="$COPY_CMD"
fi fi
cd "${PASSWORD_STORE_DIR:-$HOME/.password-store}" cd "${PASSWORD_STORE_DIR:-$HOME/.password-store}"