mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
fix emptiness test
This commit is contained in:
parent
f9476814fd
commit
4930856d03
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ mkdir -p $CWD/els
|
|||
URL=$1
|
||||
FILENAME=$(echo "$URL" | grep -o -e "[/=][A-Za-z0-9+-]*\.el" | tr -d '=' | tr -d '/')
|
||||
wget --no-check-certificate -T 10 -t 3 -c "$URL" -O "$FILENAME.new"
|
||||
[ "$(cat $FILENAME.new | wc -c)" > 0 ] && mv "$FILENAME.new" "$FILENAME"
|
||||
[[ "$(cat $FILENAME.new | wc -c)" > 0 ]] && mv "$FILENAME.new" "$FILENAME"
|
||||
[ -e "$FILENAME.new" ] && rm "$FILENAME.new"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue