dot

packages and services management
Log | Files | Refs | README

commit c0d73abb41e7973a4f08765706d0de3d91fa2dc1
parent 627d0c9b5c5c68bcd5ebe863dddb8fc447c54a57
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 18 May 2017 13:12:43 +0200

Merge branch 'master' of http://github.com/josuah/etc

Diffstat:
Mbin/build | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/build b/bin/build @@ -44,7 +44,8 @@ download() { read url < "$ETC/build/$1/url" - [ -d "$OPT/$1" ] && exit 1 + [ -e "$SRC/$1" ] && exit 1 + [ -e "$OPT/$1" ] && rm -r "$OPT/$1" case "$url" in ( *.tar ) opt='' ;; @@ -54,10 +55,9 @@ download() ( * ) exit 1 ;; esac - mkdir -p "$OPT/$1" + mkdir -p "$OPT/$1" "$SRC" wget -qO - "$url" | tar -xv"$opt"f - -C "$OPT/$1" - - mv "$OPT/$1/"* "$SRC/$1" + mv "$OPT/$1"/* "$SRC/$1" }