mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-14 22:05:15 +01:00
Fixed printlog issue
This commit is contained in:
@@ -366,7 +366,8 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
|||||||
|
|
||||||
# skip install for DEBUG 2
|
# skip install for DEBUG 2
|
||||||
if [ "$DEBUG" -eq 2 ]; then
|
if [ "$DEBUG" -eq 2 ]; then
|
||||||
cleanupAndExit 0 "DEBUG mode 2 enabled, exiting"
|
printlog "DEBUG mode 2 enabled, exiting"
|
||||||
|
cleanupAndExit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove existing application
|
# remove existing application
|
||||||
@@ -469,7 +470,8 @@ installFromPKG() {
|
|||||||
|
|
||||||
# skip install for DEBUG 2
|
# skip install for DEBUG 2
|
||||||
if [ "$DEBUG" -eq 2 ]; then
|
if [ "$DEBUG" -eq 2 ]; then
|
||||||
cleanupAndExit 0 "DEBUG 2 enabled, exiting"
|
printlog "DEBUG mode 2 enabled, exiting"
|
||||||
|
cleanupAndExit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install pkg
|
# install pkg
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# MARK: check for root
|
# MARK: check for root
|
||||||
if [ "$(whoami)" != "root" || "$DEBUG" -eq 2 ]; then
|
if [[ "$(whoami)" != "root" && "$DEBUG" -ne 2 ]]; then
|
||||||
# not running as root
|
# not running as root
|
||||||
cleanupAndExit 6 "not running as root, exiting"
|
cleanupAndExit 6 "not running as root, exiting"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user