updated license manager
This commit is contained in:
11
build.sh
11
build.sh
@@ -2,6 +2,17 @@
|
|||||||
|
|
||||||
# This script will initialize the gradle build process for all subprojects in src dicetory
|
# This script will initialize the gradle build process for all subprojects in src dicetory
|
||||||
|
|
||||||
|
# check if user is root and change user to builder
|
||||||
|
|
||||||
|
if [ "$EUID" -eq 0 ]; then
|
||||||
|
echo "Please do not run this script as root."
|
||||||
|
BUILD_USER="builder"
|
||||||
|
else
|
||||||
|
BUILD_USER="$USER"
|
||||||
|
fi
|
||||||
|
|
||||||
|
source /home/$BUILD_USER/.bashrc
|
||||||
|
|
||||||
# Find all src subdirectories containing a build.gradle file
|
# Find all src subdirectories containing a build.gradle file
|
||||||
for dir in src/*/; do
|
for dir in src/*/; do
|
||||||
if [ -f "$dir/build.gradle" ]; then
|
if [ -f "$dir/build.gradle" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user