From: Todd C. Miller Date: Tue, 8 Mar 2011 21:09:48 +0000 (-0500) Subject: Fix default setting of osversion variable. X-Git-Tag: SUDO_1_8_1~118^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=206f5ff3131b0508b2bbc5545659decadeb2eb6c;p=sudo Fix default setting of osversion variable. --- diff --git a/mkpkg b/mkpkg index 3c9ee4a96..174f20c6a 100755 --- 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