Browse Source

new: [monujo] keep original source directory to avoid the need to relaunch frontends

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
Valentin Lab 2 years ago
parent
commit
56194694de
  1. 5
      monujo/lib/common

5
monujo/lib/common

@ -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 || {

Loading…
Cancel
Save