Skip to content

Commit c30c9d8

Browse files
committed
fix mac ci install
1 parent cc95267 commit c30c9d8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

make.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

0 commit comments

Comments
 (0)