Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
@ -18,8 +18,11 @@ monujo:code_init() {
return 0
fi
[ -d "$LOCATION" ] && rm -rf "$LOCATION"
if [ -d "$LOCATION" ]; then
find "$LOCATION" -mindepth 1 -delete
else
mkdir -p "$LOCATION"
cd "$LOCATION"
info "Downloading '$SOURCE_URL'."
wget -q "$SOURCE_URL" -O file.tar.bz2 || {