File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function clone {
19
19
$GIT clone -q $1 $2
20
20
res=$?
21
21
22
- cd $2
22
+ cd " $2 "
23
23
24
24
$GIT pull --all
25
25
@@ -29,4 +29,4 @@ function clone {
29
29
}
30
30
31
31
echo " cloning repository into ... $2 "
32
- clone $1 $2
32
+ clone $1 " $2 "
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ OLD="$1"; shift
11
11
fi
12
12
test $# -gt 0 && test -z " $CACHED " && NEW=" $1 "
13
13
TMPDIR1=` mktemp -d`
14
- git archive --format=tar $OLD | (cd $TMPDIR1 ; tar xf -)
14
+ git archive --format=tar $OLD | (cd " $TMPDIR1 " ; tar xf -)
15
15
if test -z " $NEW " ; then
16
16
TMPDIR2=$( git rev-parse --show-cdup)
17
17
test -z " $cdup " && TMPDIR2=.
18
18
else
19
19
TMPDIR2=` mktemp -d`
20
- git archive --format=tar $NEW | (cd $TMPDIR2 ; tar xf -)
20
+ git archive --format=tar $NEW | (cd " $TMPDIR2 " ; tar xf -)
21
21
fi
22
22
23
- opendiff $TMPDIR1 $TMPDIR2 | cat
24
- rm -rf $TMPDIR1
25
- test ! -z " $NEW " && rm -rf $TMPDIR2
23
+ opendiff " $TMPDIR1 " " $TMPDIR2 " | cat
24
+ rm -rf " $TMPDIR1 "
25
+ test ! -z " $NEW " && rm -rf " $TMPDIR2 "
26
26
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ ret=0
18
18
19
19
if [ -z " ` git branch` " ]
20
20
then
21
- if [ $( cd $( git root) && ls -Al | egrep -v " ^(.git|total)" | wc -l) -gt 0 ]
21
+ if [ $( cd " $( git root) " && ls -Al | egrep -v " ^(.git|total)" | wc -l) -gt 0 ]
22
22
then
23
23
echo " WARN: This repo doesn't contain any branch, but contains a bunch of files!" >&2
24
- ls -Alh $( git root)
24
+ ls -Alh " $( git root) "
25
25
ret=1
26
26
else
27
27
echo " INFO: This repo doesn't contain any branch, and is empty"
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ if [ -n "$1" ]
6
6
then
7
7
if [ -d " $1 " ]
8
8
then
9
- cd $1
9
+ cd " $1 "
10
10
else
11
- cd ` dirname $1 `
11
+ cd " ` dirname $1 ` "
12
12
fi
13
13
fi
14
14
exec git rev-parse --show-toplevel
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ MIRROR=$HOME/Products/ledger-pre-commit-mirror
12
12
set -e
13
13
14
14
# Checkout a copy of the current index into MIRROR
15
- git checkout-index --prefix=$MIRROR / -af
15
+ git checkout-index --prefix=" $MIRROR /" -af
16
16
17
17
# Remove files from MIRROR which are no longer present in the index
18
18
git diff-index --cached --name-only --diff-filter=D -z HEAD | \
19
- (cd $MIRROR && xargs -0 rm -f --)
19
+ (cd " $MIRROR " && xargs -0 rm -f --)
20
20
21
21
# Copy only _changed files_ from MIRROR to TMPDIR, without copying timestamps.
22
22
# This includes copying over new files, and deleting removed ones. This way,
23
23
# "make check" will only rebuild what is necessary to validate the commit.
24
- rsync -rlpgoDOc --delete --exclude-from=tools/excludes $MIRROR / $TMPDIR /
24
+ rsync -rlpgoDOc --delete --exclude-from=tools/excludes " $MIRROR /" " $TMPDIR /"
25
25
26
26
# Everything else happens in the temporary build tree
27
- if [ ! -f $TMPDIR /lib/utfcpp/source/utf8.h ]; then
28
- rsync -a --delete lib/utfcpp/ $TMPDIR /lib/utfcpp/
27
+ if [ ! -f " $TMPDIR /lib/utfcpp/source/utf8.h" ]; then
28
+ rsync -a --delete lib/utfcpp/ " $TMPDIR /lib/utfcpp/"
29
29
fi
30
- cd $TMPDIR
30
+ cd " $TMPDIR "
31
31
32
32
# Make sure there is a current Makefile. Regeneration of Makefile happens
33
33
# automatically, but if myacprep or acprep changes, we want to regenerate
You can’t perform that action at this time.
0 commit comments