aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Lucas <jlucas@disroot.org>2025-01-04 00:48:04 +0000
committerJoão Lucas <jlucas@disroot.org>2025-01-04 00:48:04 +0000
commite4e1f291743c8d5ed725a29c37338fdc0c4e9c65 (patch)
treee892bc26c37c87967e7761138b471a233cf80963
parent931135ba08cabdc9cfe547d16fceb14ef0d3e22e (diff)
downloadanypinentry-e4e1f291743c8d5ed725a29c37338fdc0c4e9c65.tar.gz
anypinentry-e4e1f291743c8d5ed725a29c37338fdc0c4e9c65.zip
fix input parsing when cmd has no data
-rwxr-xr-xanypinentry2
1 files changed, 1 insertions, 1 deletions
diff --git a/anypinentry b/anypinentry
index 8808939..4790ebe 100755
--- a/anypinentry
+++ b/anypinentry
@@ -151,7 +151,7 @@ interpret_command() {
return
fi
cmd="$(echo "$1" | cut -d' ' -f1 | tr a-z A-Z)";
- data="$(echo "$1" | cut -d' ' -f2-)";
+ data="$(echo "$1" | cut -d' ' -sf2-)";
case "${cmd}" in
NOP) ;;