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