File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
src/linux/Packaging.Linux Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 99
1010 <PropertyGroup >
1111 <InstallFromSource >false</InstallFromSource >
12+ <InstallLocation >/usr/local</InstallLocation >
1213 </PropertyGroup >
1314
1415 <ItemGroup >
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ case "$i" in
4040esac
4141done
4242
43+ # Ensure install location exists
44+ if [! -d " $installLocation " ]; then
45+ mkdir -p " $INSTALL_LOCATION "
46+ fi
47+
4348# Perform pre-execution checks
4449CONFIGURATION=" ${CONFIGURATION:= Debug} "
4550if [ -z " $VERSION " ]; then
@@ -54,10 +59,6 @@ SYMBOLS="$OUTDIR/payload.sym"
5459" $INSTALLER_SRC /layout.sh" --configuration=" $CONFIGURATION " || exit 1
5560
5661if [ $INSTALL_FROM_SOURCE = true ]; then
57- # INSTALL_LOCATION="/usr/local"
58-
59- mkdir -p " $INSTALL_LOCATION "
60-
6162 echo " Installing to $INSTALL_LOCATION "
6263
6364 # Install directories
Original file line number Diff line number Diff line change 66# for additional details.
77set -e
88
9- installLocation=/usr/local
109is_ci=
1110for i in " $@ " ; do
1211 case " $i " in
@@ -21,10 +20,14 @@ for i in "$@"; do
2120 esac
2221done
2322
23+ # If install-location is not passed, use default value
24+ if [ -z " $installLocation " ]; then
25+ installLocation=/usr/local
26+ fi
2427
25- # If pass the install-location check if it exists
28+ # Ensure install location exists
2629if [! -d " $installLocation " ]; then
27- echo " The folder $installLocation do not exists "
30+ echo " The folder $installLocation does not exist "
2831 exit
2932fi
3033
You can’t perform that action at this time.
0 commit comments