fix(CI/Misc): Make CodeFactor happy (#10468)

This commit is contained in:
Kitzunu
2022-02-01 05:56:10 +01:00
committed by GitHub
parent 4c5aceedbd
commit 6f20b9ece7

View File

@@ -15,14 +15,14 @@ function import() {
updPath="$UPDATES_PATH/$folder"
archivedPath="$AC_PATH_ROOT/data/sql/archive/$folder/5.x"
latestUpd=`ls -1 $updPath/ | tail -n 1`
latestUpd=$(ls -1 $updPath/ | tail -n 1)
if [ -z $latestUpd ]; then
latestUpd=`ls -1 $archivedPath/ | tail -n 1`
latestUpd=$(ls -1 $archivedPath/ | tail -n 1)
echo "> Last update file for db $db is missing! Using archived file" $latestUpd
fi
dateToday=`date +%Y_%m_%d`
dateToday=$(date +%Y_%m_%d)
counter=0
dateLast=$latestUpd