dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 023c756508f0e89640422eb6d8350d4ab3e4afbd
parent 3621e3d5a1c5c5ad32ed8c03ffaa0c2f586f833c
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue,  5 Mar 2019 18:37:31 +0100

No global replace in pass-import-txt

Don't want global replace if the password contains a ':' (which it
might). So only replace the first occurrence (single slash instead of
double).


Former-commit-id: 730c23fd8e177a8705fa36e9b75df87ef6fa8609
Diffstat:
Mscripts/pass-import-txt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/pass-import-txt b/scripts/pass-import-txt @@ -7,7 +7,7 @@ fi dest="${2%/}" echo "$(tput setaf 6)This is what's gonna happen:" while read -r line; do - arr=(${line//:/ }); + arr=(${line/:/ }); echo "echo ${arr[1]} | pass insert --multiline $dest/${arr[0]}"; done < "$1"