Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed logging for Mac #64

Merged
merged 1 commit into from May 19, 2014
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -685,7 +685,15 @@ logMsgToConfigSysLog()
echo "$2"
currentTime=$(date)

enabler=$(echo MWVjNGU4ZTEtZmJiMi00N2U3LTkyOWItNzVhMWJmZjVmZmUw | base64 -d)
#for Linux system, we need to use -d switch to decode base64 whereas
#for Mac system, we need to use -D switch to decode
varUname=$(uname)
if [[ $varUname == 'Linux' ]]; then
enabler=$(echo MWVjNGU4ZTEtZmJiMi00N2U3LTkyOWItNzVhMWJmZjVmZmUw | base64 -d)
elif [[ $varUname == 'Darwin' ]]; then
enabler=$(echo MWVjNGU4ZTEtZmJiMi00N2U3LTkyOWItNzVhMWJmZjVmZmUw | base64 -D)
fi

if [ $? -ne 0 ]; then
echo "ERROR: Base64 decode is not supported on your Operating System. Please update your system to support Base64"
exit 1
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.