:-'Generic Commit'
This commit is contained in:
parent
a70be1711b
commit
1d0b1f79b3
@ -16,7 +16,7 @@ if [ -n "${SUDO_USER:-}" ] && [ "$SUDO_USER" != "root" ]; then
|
||||
fi
|
||||
|
||||
# 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
|
||||
exit 1
|
||||
fi
|
||||
@ -118,7 +118,7 @@ function install_headers() {
|
||||
cd "libassert/build" || exit 1
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
make -j
|
||||
"$SUDOCMD" make install
|
||||
${SUDOCMD:-} make install
|
||||
cd ../..
|
||||
rm -rf libassert
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user