summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-10 13:46:17 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-05 21:54:10 +0100
commita9215c5ea377e346a2416e62f0576f0f23252eb8 (patch)
treec820ac1c51a22ac9265ecee733f6873ac6e39ec4
parent72746218db62d52d5d2608a6df76f6ced4768ab1 (diff)
downloadlibguestfs-a9215c5ea377e346a2416e62f0576f0f23252eb8.tar.gz
libguestfs-a9215c5ea377e346a2416e62f0576f0f23252eb8.tar.xz
libguestfs-a9215c5ea377e346a2416e62f0576f0f23252eb8.zip
podwrapper: Fix shell script.
This fixes commit f9a5e3ed86ee7bcd13619f13b4d4de6ce46ac8c3. (cherry picked from commit 33bb7408f684bf0d4eff0a0e99c53449fa4923e4)
-rwxr-xr-xpodwrapper.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/podwrapper.sh.in b/podwrapper.sh.in
index 9198f631..c30df520 100755
--- a/podwrapper.sh.in
+++ b/podwrapper.sh.in
@@ -56,9 +56,9 @@ fi
if [ -e $abs_top_srcdir/ChangeLog ]; then
DATEPARAM=`awk '/^[0-9]+-[0-9]+-[0-9]+/ { print "--date=" $1; exit }' \
$abs_top_srcdir/ChangeLog`
-else if [ -d $abs_top_srcdir/.git ]; then
+elif [ -d $abs_top_srcdir/.git ]; then
DATEPARAM=`git show -s --format=%ci | awk '{print "--date=" $1}'`
-else
+fi
declare -a inserts
declare -a pattern