[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] -l should be -L (mk-images)
- From: Jeroen van Meeuwen <kanarip kanarip com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH] -l should be -L (mk-images)
- Date: Sun, 12 Apr 2009 16:58:23 +0200
In scripts/mk-images (line 367), in function instbin(), "-l" is being
used (length of a string in INTEGER) rather then -L (file exists and is
a symbolic link).
Kind regards,
Jeroen van Meeuwen
>From 8d35c11fa1369a51e8ca57d7eadddef1698bbe1f Mon Sep 17 00:00:00 2001
From: Jeroen van Meeuwen (Fedora Unity) <kanarip fedoraunity org>
Date: Sun, 12 Apr 2009 16:55:28 +0200
Subject: [PATCH] -l should be -L
-l determines the length of a string, we should test whether the file
is a symbolic link (-L or -h)
---
scripts/mk-images | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/mk-images b/scripts/mk-images
index e0dc4ab..22085ce 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -364,7 +364,7 @@ instbin() {
iself="$(file $ROOT/$BIN | grep ELF | grep executable)"
- if [ -l $ROOT/$BIN ]; then
+ if [ -L "$ROOT/$BIN" ]; then
cp -a $ROOT/$BIN $DIR/$DEST
else
if [ -z "$iself" ]; then
--
1.6.2.2
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]