dotfiles

Dotfiles for my OpenBSD environment.
Log | Files | Refs

commit 3ff5c603848e93c8197198380288d4f205aad849
parent 6b53f78927dd69476f80016c1fb96a370e25d582
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date:   Wed, 20 Jul 2022 20:10:48 +0900

remove non posix syntax

Diffstat:
Mbin/chogo | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/chogo b/bin/chogo @@ -67,7 +67,7 @@ while getopts d: opt; do *) usage >&2; exit 1 ;; esac done -shift $(($OPTIND - 1)) +shift $(expr "$OPTIND" - 1) if [ ! -n "$1" ]; then usage >&2; exit 1; fi if [ -n "$3" ]; then usage >&2; exit 1; fi @@ -84,4 +84,5 @@ case "$1" in cf) cf ;; bf) bf ;; *) usage >&2; exit 1 ;; + #BUG: script not terminated if $2 is empty and command doesn't exist esac