#!/bin/sh PACKAGES="" . .github/configs $@ host=`./config.guess` echo "config.guess: $host" case "$host" in *cygwin) PACKAGER=setup echo Setting CYGWIN system environment variable. setx CYGWIN "binmode" echo Removing extended ACLs so umask works as expected. setfacl -b . regress PACKAGES="$PACKAGES,autoconf,automake,cygwin-devel,gcc-core" PACKAGES="$PACKAGES,make,openssl-devel,zlib-devel" ;; *-darwin*) PACKAGER=brew PACKAGES="automake" ;; *) PACKAGER=apt esac TARGETS=$@ INSTALL_FIDO_PPA="no" export DEBIAN_FRONTEND=noninteractive set -e if [ -x "`which lsb_release 2>&1`" ]; then lsb_release -a fi if [ ! -z "$SUDO" ]; then # Ubuntu 22.04 defaults to private home dirs which prevent the # agent-getpeerid test from running ssh-add as nobody. See # https://github.com/actions/runner-images/issues/6106 if ! "$SUDO" -u nobody test -x ~; then echo ~ is not executable by nobody, adding perms. chmod go+x ~ fi # Some of the Mac OS X runners don't have a nopasswd sudo rule. Regular # sudo still works, but sudo -u doesn't. Restore the sudo rule. if ! "$SUDO" grep -E 'runner.*NOPASSWD' /etc/passwd >/dev/null; then echo "Restoring runner nopasswd rule to sudoers." echo 'runner ALL=(ALL) NOPASSWD: ALL' |$SUDO tee -a /etc/sudoers fi if ! "$SUDO" -u nobody -S test -x ~