mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Update checkLabels.sh
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
# Check Installomator labels from fragments
|
||||
# 2021 Søren Theilgaard (@theilgaard)
|
||||
# 2021-2022 Søren Theilgaard (@theilgaard)
|
||||
|
||||
# This script will test labels and check if download link is active, and if version is defined.
|
||||
# If labels are written to the script only those will be tested.
|
||||
@@ -239,51 +239,20 @@ for label in $allLabels; do
|
||||
fi
|
||||
echo
|
||||
done
|
||||
# check errorLabels using Installomator
|
||||
#echo "Testing – $errorLabels – using Installomator"
|
||||
#if [[ countError > 0 ]]; then
|
||||
# allLabels=( ${=errorLabels} )
|
||||
# for errorLabel in $errorLabels; do
|
||||
# exit_status=$( . $repo_dir/assemble.sh $errorLabel DEBUG=2 INSTALL=force | grep exit | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' )
|
||||
# if [[ ${exit_status} -eq 0 ]] ; then
|
||||
# echo "$errorLabel works fine"
|
||||
# errorLabels=("${(@)errorLabels:#$errorLabel}")
|
||||
# ((countError--))
|
||||
# fi
|
||||
# done
|
||||
#fi
|
||||
if [[ $fixedArch == i386 ]] ; then
|
||||
errorLabelsi386=( ${=errorLabels} )
|
||||
else
|
||||
errorLabelsarm64=( ${=errorLabels} )
|
||||
fi
|
||||
#eval errorLabels${fixedArch}="${errorLabels}"
|
||||
|
||||
errorLabels=""
|
||||
allLabels=( ${=secondRoundLabels} )
|
||||
archLabels=()
|
||||
echo
|
||||
done
|
||||
#errorLabels${fixedArch}=(${=errorLabels})
|
||||
# check errorLabels using Installomator
|
||||
#echo "Testing – $errorLabels – using Installomator"
|
||||
#if [[ countError > 0 ]]; then
|
||||
# allLabels=( ${=errorLabels} )
|
||||
# for errorLabel in $errorLabels; do
|
||||
# exit_status=$( . $repo_dir/assemble.sh $errorLabel DEBUG=2 INSTALL=force | grep exit | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' )
|
||||
# if [[ ${exit_status} -eq 0 ]] ; then
|
||||
# echo "$errorLabel works fine"
|
||||
# errorLabels=("${(@)errorLabels:#$errorLabel}")
|
||||
# ((countError--))
|
||||
# fi
|
||||
# done
|
||||
#fi
|
||||
#errorLabels2=( ${=errorLabels} )
|
||||
|
||||
rm checkLabelCurrent.sh
|
||||
|
||||
#${SELFLOCATION}/Installomator.sh version
|
||||
#echo
|
||||
|
||||
if [[ countWarning -gt 0 ]]; then
|
||||
echo "${YELLOW}Warnings counted: $countWarning${NC}"
|
||||
echo "${YELLOW}${warningLabels}${NC}"
|
||||
|
||||
Reference in New Issue
Block a user