fix expr: syntax error by initiate integer value

This commit is contained in:
YCC 2024-02-14 01:35:37 +08:00
commit 36e7420d5d

View file

@ -31,7 +31,7 @@ current_panes=$(tmux list-panes | wc -l)
list_layouts() {
echo
echo "Byobu Saved Layouts"
local count=0 i= desc= count= p=
local count=0 i= desc= p=
for i in $PRESETS "$DIR"/*; do
desc=${i##*/}
count=$(expr $count + 1)