Fix install on MacOS to not return error code 2 after a normal install
This commit is contained in:
parent
98c1b97fb0
commit
cc4ce385ee
|
@ -42,6 +42,7 @@ include #### GetConfFileValue SUBSET ####
|
||||||
|
|
||||||
function SetLocalOSSettings {
|
function SetLocalOSSettings {
|
||||||
USER=root
|
USER=root
|
||||||
|
DO_INIT=true
|
||||||
|
|
||||||
# LOCAL_OS and LOCAL_OS_FULL are global variables set at GetLocalOS
|
# LOCAL_OS and LOCAL_OS_FULL are global variables set at GetLocalOS
|
||||||
|
|
||||||
|
@ -51,6 +52,7 @@ function SetLocalOSSettings {
|
||||||
;;
|
;;
|
||||||
*"MacOSX"*)
|
*"MacOSX"*)
|
||||||
GROUP=admin
|
GROUP=admin
|
||||||
|
DO_INIT=false
|
||||||
;;
|
;;
|
||||||
*"msys"*|*"Cygwin"*)
|
*"msys"*|*"Cygwin"*)
|
||||||
USER=""
|
USER=""
|
||||||
|
@ -425,7 +427,11 @@ umask 0022
|
||||||
|
|
||||||
GetLocalOS
|
GetLocalOS
|
||||||
SetLocalOSSettings
|
SetLocalOSSettings
|
||||||
GetInit
|
# On Mac OS this always produces a warning which causes the installer to fail with exit code 2
|
||||||
|
# Since we know it won't work anyway, and that's fine, just skip this step
|
||||||
|
if $DO_INIT; then
|
||||||
|
GetInit
|
||||||
|
fi
|
||||||
|
|
||||||
STATS_LINK="http://instcount.netpower.fr?program=$PROGRAM&version=$PROGRAM_VERSION&os=$OS&action=$ACTION"
|
STATS_LINK="http://instcount.netpower.fr?program=$PROGRAM&version=$PROGRAM_VERSION&os=$OS&action=$ACTION"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue