This repository has been archived on 2024-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
package/check_package_exists.sh
Tobias Reisinger a757c7b30f upgpkg: controller-testing v0.3.3
upgpkg: controller v0.3.3
add: new try to speed up building
2020-08-25 11:23:55 +02:00

9 lines
299 B
Bash
Executable file

#!/usr/bin/sh
arch=$(grep "CARCH" /etc/makepkg.conf | grep -Po 'CARCH="\K[^"]*')
http_status=$(curl -sLI https://serguzim.me/repo/archlinux/$arch/emgauwa/$(basename $(makepkg --packagelist)) | head -n 1)
http_code=$(echo $http_status | awk '{ print $2 }')
[ $http_code -eq 200 ] && exit 0
exit 1