diff options
-rwxr-xr-x | sbopkglint | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -634,6 +634,9 @@ faillist="" passcount=0 failcount=0 +# 20231204 bkw: Bad Things Happen if $TMP doesn't exist. +mkdir -p "$TMP" + for package in $packages; do if [ ! -e "$package" ]; then warn "$package does not exist" @@ -646,7 +649,12 @@ for package in $packages; do ARCH="$( echo $filename | rev | cut -d- -f2 | rev )" PRGNAM="$( echo $filename | rev | cut -d- -f4- | rev )" VERSION="$( echo $filename | rev | cut -d- -f3 | rev )" + PKG="$( mktemp -d $TMP/sbopkglint.XXXXXX )" + if [ "$PKG" = "" ]; then + warn "Can't create temp directory in $TMP, bailing!" + exit 1 + fi totalwarns=0 foundtests=0 |