修复shell变量自加

This commit is contained in:
whyour 2021-05-07 16:16:27 +08:00
parent 0daa171508
commit 806eeae7d2

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
## 目录
dir_root=/ql
dir_shell=$dir_root/shell
@ -51,7 +53,7 @@ import_config () {
[ -f $file_config_user ] && . $file_config_user
user_sum=0
for line in $(cat $file_cookie); do
let user_sum++
let user_sum+=1
eval Cookie${user_sum}="\"$line\""
done
}