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 9
9
10
10
<PropertyGroup >
11
11
<InstallFromSource >false</InstallFromSource >
12
+ <InstallLocation >/usr/local</InstallLocation >
12
13
</PropertyGroup >
13
14
14
15
<ItemGroup >
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ case "$i" in
40
40
esac
41
41
done
42
42
43
+ # Ensure install location exists
44
+ if [! -d " $installLocation " ]; then
45
+ mkdir -p " $INSTALL_LOCATION "
46
+ fi
47
+
43
48
# Perform pre-execution checks
44
49
CONFIGURATION=" ${CONFIGURATION:= Debug} "
45
50
if [ -z " $VERSION " ]; then
@@ -54,10 +59,6 @@ SYMBOLS="$OUTDIR/payload.sym"
54
59
" $INSTALLER_SRC /layout.sh" --configuration=" $CONFIGURATION " || exit 1
55
60
56
61
if [ $INSTALL_FROM_SOURCE = true ]; then
57
- # INSTALL_LOCATION="/usr/local"
58
-
59
- mkdir -p " $INSTALL_LOCATION "
60
-
61
62
echo " Installing to $INSTALL_LOCATION "
62
63
63
64
# Install directories
Original file line number Diff line number Diff line change 6
6
# for additional details.
7
7
set -e
8
8
9
- installLocation=/usr/local
10
9
is_ci=
11
10
for i in " $@ " ; do
12
11
case " $i " in
@@ -21,10 +20,14 @@ for i in "$@"; do
21
20
esac
22
21
done
23
22
23
+ # If install-location is not passed, use default value
24
+ if [ -z " $installLocation " ]; then
25
+ installLocation=/usr/local
26
+ fi
24
27
25
- # If pass the install-location check if it exists
28
+ # Ensure install location exists
26
29
if [! -d " $installLocation " ]; then
27
- echo " The folder $installLocation do not exists "
30
+ echo " The folder $installLocation does not exist "
28
31
exit
29
32
fi
30
33
You can’t perform that action at this time.
0 commit comments