diff options
author | Olaf Hering <olaf@aepfle.de> | 2012-08-02 10:46:02 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2012-08-02 10:46:02 +0100 |
commit | 6a994f3e89a554e38ec549292448467660f90d02 (patch) | |
tree | bf23c5b1f7af3dca48a6a55de263ea787a213d73 /tools/pygrub | |
parent | 2862bf5b6c81979596ce84e53e7cc1d88be9dcd2 (diff) | |
download | xen-6a994f3e89a554e38ec549292448467660f90d02.tar.gz xen-6a994f3e89a554e38ec549292448467660f90d02.tar.bz2 xen-6a994f3e89a554e38ec549292448467660f90d02.zip |
pygrub: add quoting to install receipe
The changeset 25694:e20085770cb5 causes a syntax error if readline
returns nothing due to non-existant path:
[ 148s] set -e; if [ `readlink -f /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin` != \
[ 148s] `readlink -f /usr/lib64/xen/bin` ]; then \
[ 148s] ln -sf /usr/lib64/xen/bin/pygrub /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin; \
[ 148s] fi
[ 148s] /bin/sh: line 0: [: /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install/usr/bin: unary operator expected
Add quoting to fix the error.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r-- | tools/pygrub/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index 8c99e11b68..039f7f7e4a 100644 --- a/tools/pygrub/Makefile +++ b/tools/pygrub/Makefile @@ -14,8 +14,8 @@ install: all $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \ --install-scripts=$(PRIVATE_BINDIR) --force $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot - set -e; if [ `readlink -f $(DESTDIR)/$(BINDIR)` != \ - `readlink -f $(PRIVATE_BINDIR)` ]; then \ + set -e; if [ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \ + "`readlink -f $(PRIVATE_BINDIR)`" ]; then \ ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \ fi |