fix(CI/Misc): Make CodeFactor happy (#10468)
This commit is contained in:
@@ -15,14 +15,14 @@ function import() {
|
|||||||
updPath="$UPDATES_PATH/$folder"
|
updPath="$UPDATES_PATH/$folder"
|
||||||
archivedPath="$AC_PATH_ROOT/data/sql/archive/$folder/5.x"
|
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
|
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
|
echo "> Last update file for db $db is missing! Using archived file" $latestUpd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dateToday=`date +%Y_%m_%d`
|
dateToday=$(date +%Y_%m_%d)
|
||||||
counter=0
|
counter=0
|
||||||
|
|
||||||
dateLast=$latestUpd
|
dateLast=$latestUpd
|
||||||
|
|||||||
Reference in New Issue
Block a user