File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
33# make.sh
44#
5- # Copyright (C) 2020 Kristofer Berggren
5+ # Copyright (C) 2020-2025 Kristofer Berggren
66# All rights reserved.
77#
88# See LICENSE for redistribution information.
@@ -146,7 +146,11 @@ if [[ "${INSTALL}" == "1" ]]; then
146146 if [ " ${OS} " == " Linux" ]; then
147147 cd build && sudo make install && cd .. || exiterr " install failed (linux), exiting."
148148 elif [ " ${OS} " == " Darwin" ]; then
149- cd build && make install && cd .. || exiterr " install failed (mac), exiting."
149+ GHSUDO=" "
150+ if [[ " ${GITHUB_ACTIONS} " == " true" ]]; then
151+ GHSUDO=" sudo"
152+ fi
153+ cd build && ${GHSUDO} make install && cd .. || exiterr " install failed (mac), exiting."
150154 else
151155 exiterr " install failed (unsupported os ${OS} ), exiting."
152156 fi
You can’t perform that action at this time.
0 commit comments