File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh -x
2
2
3
- . $( dirname " $0 " ) /functions
3
+ . " $( dirname " $0 " ) " /functions
4
4
. detect-environment
5
5
. compile-options
6
6
7
7
SOURCE_TARBALL=" $BASEDIR /output/tarballs/cfengine-3.*.tar.gz"
8
- MASTERFILES_TARBALL=$( ls $ BASEDIR /output/tarballs/cfengine-masterfiles* .tar.gz | grep -v ' pkg.tar.gz$ ' )
8
+ MASTERFILES_TARBALL=$( grep -v ' pkg.tar.gz$ ' " $ BASEDIR" /output/tarballs/cfengine-masterfiles* .tar.gz)
9
9
10
10
# DELETE the git-checked-out directories, they are tainted with
11
11
# ./configure artifacts anyway. The tarballs are unpacked and symlinked
@@ -23,17 +23,17 @@ if [ -e "$BASEDIR/core/" ] || [ -e "$BASEDIR/masterfiles/" ]; then
23
23
exit 1
24
24
fi
25
25
26
- if [ x $PROJECT = xcommunity ]; then
26
+ if [ " $PROJECT " = community ]; then
27
27
sudo rm -rf " $BASEDIR /enterprise" " $BASEDIR /nova" " $BASEDIR /mission-portal"
28
28
fi
29
29
30
30
# NATIVE TAR is being used on purpose, and *not* GNU TAR.
31
31
32
32
echo " UNPACKING SOURCE TARBALL AND SYMLINKING core"
33
- cd $BASEDIR
34
- gzip -dc $SOURCE_TARBALL | tar -xf -
33
+ cd " $BASEDIR "
34
+ gzip -dc " $SOURCE_TARBALL " | tar -xf -
35
35
ln -s cfengine-3* core
36
36
37
37
echo " UNPACKING MASTERFILES TARBALL AND SYMLINKING masterfiles/"
38
- gzip -dc $MASTERFILES_TARBALL | tar -xf -
38
+ gzip -dc " $MASTERFILES_TARBALL " | tar -xf -
39
39
ln -s cfengine-masterfiles-* masterfiles
You can’t perform that action at this time.
0 commit comments