Check if running as root
- Added a check to see if the script is running as root to some of the scripts.
User will be prompted to confirm if they want to continue running as root.
Change-Id: If535945002f0e2fb58417388036373c0d5f69dfd
diff --git a/build-ramcloud-java-bindings.sh b/build-ramcloud-java-bindings.sh
index 3d7cc8e..2ba8713 100755
--- a/build-ramcloud-java-bindings.sh
+++ b/build-ramcloud-java-bindings.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# run this script, when RAMCloud java binding is updated
@@ -7,4 +7,8 @@
export ONOS_HOME=${ONOS_HOME:-$(cd `dirname $0`; pwd)}
export RAMCLOUD_HOME=${RAMCLOUD_HOME:-~/ramcloud}
+source ${ONOS_HOME}/scripts/common/utils.sh
+
+confirm-if-root
+
${ONOS_HOME}/ramcloud-build-scripts/build_jni_so.sh