X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=log-once;h=179dacfd8c670eea5035a2c6255d7a9e60a727c5;hb=457661424027a87b9ea600cfeb218574e95470d4;hp=233bc0f1deaeff23e2ac9822e2658ad4dc498fe3;hpb=4cd003087fd71351a8c7ed1a96985e5e68d9b6c8;p=log-quiet diff --git a/log-once b/log-once index 233bc0f..179dacf 100755 --- a/log-once +++ b/log-once @@ -40,7 +40,7 @@ state in the same directory. echo "$help" return elif [[ $1 == -[0-9]* ]]; then - errors={$1#-} + errors=${1#-} shift elif [[ $1 == -- ]]; then shift @@ -88,7 +88,7 @@ state in the same directory. $out $file <<<"${output[@]}" $out $file fi - return 1 + return 0 fi if [[ $file ]]; then rm -f $file