]> granicus.if.org Git - sudo/commitdiff
Fix default setting of osversion variable.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Mar 2011 21:09:48 +0000 (16:09 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Mar 2011 21:09:48 +0000 (16:09 -0500)
mkpkg

diff --git a/mkpkg b/mkpkg
index 3c9ee4a968e0ceaf42a2a639ace2750cb351e147..174f20c6a56d396e6b078f690c610aa6a9eba110 100755 (executable)
--- a/mkpkg
+++ b/mkpkg
@@ -69,7 +69,8 @@ done
 
 top_srcdir=`dirname $0`
 
-: osversion=`$top_srcdir/pp --probe` || exit 1
+: ${osversion="`$top_srcdir/pp --probe`"}
+test -n "$osversion" || exit 1
 osrelease=`echo "$osversion" | sed -e 's/^[^0-9]*//' -e 's/-.*$//'`
 
 # Default paths