Browse Source

* 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
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
cefa7dea4a
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      bin/sde-download2

+ 2
- 3
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
:

Loading…
Cancel
Save