From ffd127eff64136d15bb19ca4f0a5c615c1f08232 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 29 Feb 2024 12:28:19 +0100 Subject: fix androidwifistore2pass output --- .local/share/bin/androidwifistore2pass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/share/bin/androidwifistore2pass') diff --git a/.local/share/bin/androidwifistore2pass b/.local/share/bin/androidwifistore2pass index a0d7a06..b03eb9d 100755 --- a/.local/share/bin/androidwifistore2pass +++ b/.local/share/bin/androidwifistore2pass @@ -29,9 +29,9 @@ cut_quotes() { import_pass() { while read line; do - SSID="$(echo "$line" | cut -d"$TAB" -f1 | cut_quotes | tr '/' '-')" + SSID="$(echo "$line" | cut -d"$TAB" -f1 | cut_quotes)" PASSWD="$(echo "$line" | cut -d"$TAB" -f2 | cut_quotes)" - PASS_NAME="net/$SSID/passwd" + PASS_NAME="net/$(echo "$SSID" | tr '/' '-')/passwd" printf 'insert SSID "%s" as %s ...' "$SSID" "$PASS_NAME" echo "$PASSWD" | pass insert --multiline "$PASS_NAME" 1>/dev/null 2>/dev/null -- cgit v1.2.3