From cefa7dea4aa930186ba7e694a07fba54e5199372 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 29 Jul 2007 00:56:02 +0000 Subject: [PATCH] * improved sde-download2 to create tmp/ if not available, and to abort if mkdir fails git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21866 10447126-35f2-4685-b0cf-6dd780d3921f --- bin/sde-download2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/sde-download2 b/bin/sde-download2 index ca918e9..63b932e 100755 --- a/bin/sde-download2 +++ b/bin/sde-download2 @@ -160,9 +160,8 @@ case "$discriminator" in esac | while read pkg cksum file location; do # temporal download location tmpfile="$SDEROOT/tmp/down.$( echo $file | tr '/' '-' )" - - # debug output - + mkdir -p "$SDEROOT/tmp" + [ $? -eq 0 ] || exit -1 if [ -s "$SDEROOT/$file" ]; then :