summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-05-02 16:31:45 +0200
committerewy <ewy0@protonmail.com>2026-05-02 16:31:45 +0200
commit720a9145c576f9b1616d8005869af0259bad779d (patch)
tree23fe3dd11f94e2d860cf61e2c2cc446be318db75
parentc01a06e38d0b0331f459cd439ce7706ef1556e50 (diff)
change completion script to posix sh
-rw-r--r--completion/completion.sh2
-rw-r--r--main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/completion/completion.sh b/completion/completion.sh
index 9cbd52c..36876cf 100644
--- a/completion/completion.sh
+++ b/completion/completion.sh
@@ -3,7 +3,7 @@ _pik_completions()
{
QUERY=""
for word in COMP_WORDS ; do
- if [[ query != "-*" ]] ; then
+ if [ ! query = "-"* ] ; then
QUERY="$QUERY $WORD"
fi
done
diff --git a/main.go b/main.go
index 6724cfd..af5cb9f 100644
--- a/main.go
+++ b/main.go
@@ -182,7 +182,7 @@ func main() {
}
if result.Target == nil {
- _, _ = spool.Warn("target not found.\n")
+ _, _ = spool.Warn("target not found\n")
os.Exit(1)
return
}