mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2022-11-13 fc805ea5237516e48e908c6709899c639dc54bd6
initial cmake old version handling
1 files modified
5 ■■■■■ changed files
main.sh 5 ●●●●● patch | view | raw | blame | history
main.sh
@@ -74,6 +74,11 @@
        makepkg -s --noconfirm $([[ $CLEAN == "Y" ]] && echo "-c") $([[ $SIGN == "Y" ]] && echo "--sign --key $KEY") $([[ "$2" == "-f" ]] && echo -f) 2>&1
    fi
    if [[ $? != 0  && $? != 13 ]]; then
        if [[ -n $(find . -iname "*cmake")  && "$2" != "-s" ]]; then
            find ./src -iname "*cmake*" -type f -delete
            build_pkg "$1" -s
            return $?
        fi
        #Register error
        echo $1 >> $ERRORFILE
        return 1