#!/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