Skip to content

Commit a78b891

Browse files
committed
Fix string comparison
1 parent 38d1cff commit a78b891

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

command/base

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ QEMU_GIT_COMMIT="49ee115552"
1515
# reset to blank when QEMU_REV/GIT_COMMIT bumps, otherwise begin count from 1
1616
QEMU_REV_ZIG_SERIAL=
1717

18-
if [ -n $QEMU_GIT_COMMIT ]; then
18+
if [ -n "$QEMU_GIT_COMMIT" ]; then
1919
QEMU_SRC_BASENAME="${QEMU_NAME}-${QEMU_REV}-${QEMU_GIT_COMMIT}"
2020
else
2121
QEMU_SRC_BASENAME="${QEMU_NAME}-${QEMU_REV}"
@@ -34,6 +34,6 @@ WORKDIR() {
3434
}
3535

3636
RUN() {
37-
echo "run: $@"
37+
echo "run: $*"
3838
"$@"
3939
}

command/extract

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
. $(dirname $0)/base
66

7-
if [ -n $QEMU_GIT_COMMIT ]; then
7+
if [ -n "$QEMU_GIT_COMMIT" ]; then
88
exit 0
99
fi
1010

command/fetch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66

77
WORKDIR /work/src
88

9-
if [ -n $QEMU_GIT_COMMIT ]; then
9+
if [ -n "$QEMU_GIT_COMMIT" ]; then
1010
git clone --no-checkout https://github.com/qemu/qemu.git $QEMU_SRC_BASENAME
1111
cd $QEMU_SRC_BASENAME
1212
git checkout $QEMU_GIT_COMMIT

0 commit comments

Comments
 (0)