diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-02 16:31:45 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-02 16:31:45 +0200 |
| commit | 720a9145c576f9b1616d8005869af0259bad779d (patch) | |
| tree | 23fe3dd11f94e2d860cf61e2c2cc446be318db75 | |
| parent | c01a06e38d0b0331f459cd439ce7706ef1556e50 (diff) | |
change completion script to posix sh
| -rw-r--r-- | completion/completion.sh | 2 | ||||
| -rw-r--r-- | main.go | 2 |
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 @@ -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 } |
