X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=log-once;h=56961f92f7bcae812e4ebd75daf0bc5e83623916;hb=944ba8a96250f295335739530fa83d4b08dde585;hp=040e2ba72d634a76c3363cc855d3997fd9f72967;hpb=349cf9ee0e8f04ad2bab3e11b11139a4f309027e;p=log-quiet diff --git a/log-once b/log-once index 040e2ba..56961f9 100755 --- a/log-once +++ b/log-once @@ -65,11 +65,11 @@ state in the same directory. done fi glob="$c[0-9]*" - file=($glob); file="${file[0]}"; [[ $glob != $file ]] || file= + file=($glob); [[ $glob != $file ]] || file= if $log; then out=append if [[ $file ]]; then - i=${file#$c} + i="${file#$c}" if (( i < errors )); then new_file=$c$((i+1)) mv $file $new_file