We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc95267 commit c30c9d8Copy full SHA for c30c9d8
1 file changed
make.sh
@@ -2,7 +2,7 @@
2
3
# make.sh
4
#
5
-# Copyright (C) 2020 Kristofer Berggren
+# Copyright (C) 2020-2025 Kristofer Berggren
6
# All rights reserved.
7
8
# See LICENSE for redistribution information.
@@ -146,7 +146,11 @@ if [[ "${INSTALL}" == "1" ]]; then
146
if [ "${OS}" == "Linux" ]; then
147
cd build && sudo make install && cd .. || exiterr "install failed (linux), exiting."
148
elif [ "${OS}" == "Darwin" ]; then
149
- cd build && make install && cd .. || exiterr "install failed (mac), exiting."
+ GHSUDO=""
150
+ if [[ "${GITHUB_ACTIONS}" == "true" ]]; then
151
+ GHSUDO="sudo"
152
+ fi
153
+ cd build && ${GHSUDO} make install && cd .. || exiterr "install failed (mac), exiting."
154
else
155
exiterr "install failed (unsupported os ${OS}), exiting."
156
fi
0 commit comments