:-'Generic Commit'

This commit is contained in:
Your Name 2025-05-29 20:22:45 +12:00
parent a70be1711b
commit 1d0b1f79b3

View File

@ -16,7 +16,7 @@ if [ -n "${SUDO_USER:-}" ] && [ "$SUDO_USER" != "root" ]; then
fi fi
# test sudo is working or we're root (return non-zero if not root!) # test sudo is working or we're root (return non-zero if not root!)
if ! $SUDOCMD true; then if ! ${SUDOCMD:-} true; then
echo "Error: This script must be run as root or with sudo privileges." >&2 echo "Error: This script must be run as root or with sudo privileges." >&2
exit 1 exit 1
fi fi
@ -118,7 +118,7 @@ function install_headers() {
cd "libassert/build" || exit 1 cd "libassert/build" || exit 1
cmake .. -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release
make -j make -j
"$SUDOCMD" make install ${SUDOCMD:-} make install
cd ../.. cd ../..
rm -rf libassert rm -rf libassert
fi fi