aboutsummaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-29 12:28:19 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-29 12:28:19 +0100
commitffd127eff64136d15bb19ca4f0a5c615c1f08232 (patch)
tree3652dc038e9d6ad13ec8b7046a8054990b1e3256 /.local/share
parentae8d046ce42867fc3a91fa86eedab3f9674d74bb (diff)
fix androidwifistore2pass output
Diffstat (limited to '.local/share')
-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