Skip to content

Commit 208700a

Browse files
author
TpaeFawzen
authored
目录文件计数.sh: $[ … ] seemed to be deprecated
Replaced it with $(( … ))
1 parent 2ff65f0 commit 208700a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

正则表达式/目录文件计数.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ do
1010
echo $check
1111
for item in $check
1212
do
13-
count=$[ $count + 1 ]
13+
count=$(( $count + 1 ))
1414
done
1515
echo "$directory - $count"
1616
count=0

0 commit comments

Comments
 (0)