File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,15 @@ echo "macosx deployment target="$MACOSX_DEPLOYMENT_TARGET
99
99
# Install build tools and recent sqlite3
100
100
FILE=.buildtools
101
101
OS_NAME=` uname -a`
102
+
102
103
if [ ! -f $FILE ]; then
103
104
case " $OS_NAME " in
104
- * Darwin* ) tools/setup-buildtools-apple.sh $MAC_ARCH ;;
105
- * Linux* ) [[ -z " $NOROOT " ]] && sudo tools/setup-buildtools.sh || echo " No root: skipping build tools installation. " ;;
106
- * ) echo " WARNING: unsupported OS $OS_NAME , skipping build tools installation.."
105
+ * Darwin* ) CMD= " tools/setup-buildtools-apple.sh $MAC_ARCH " ;;
106
+ * Linux* ) CMD= " tools/setup-buildtools.sh" ;;
107
+ * ) CMD= " " ; echo " WARNING: unsupported OS $OS_NAME , skipping build tools installation.." ;;
107
108
esac
108
- # Assume that the build tools have been successfully installed
109
+
110
+ [[ -n " $CMD " ]] && { [[ -z " $NOROOT " ]] && sudo $CMD || echo " No root: skipping build tools installation." ; }
109
111
echo > $FILE
110
112
fi
111
113
You can’t perform that action at this time.
0 commit comments