aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/share/bin/androidwifistore2pass4
1 files changed, 2 insertions, 2 deletions
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