From d55c552049a1f709ec35c456149b058d484fe360 Mon Sep 17 00:00:00 2001 From: udeved Date: Mon, 26 Jan 2015 00:24:55 +0100 Subject: [PATCH] [buildiso] enable remove iso file by default; add iso cache arg to display function --- bin/buildiso.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/buildiso.in b/bin/buildiso.in index 511414c..8d06364 100755 --- a/bin/buildiso.in +++ b/bin/buildiso.in @@ -44,6 +44,7 @@ display_settings(){ msg2 "clean_first: ${clean_first}" msg2 "clean_cache_xorg: ${clean_cache_xorg}" msg2 "clean_cache_lng: ${clean_cache_lng}" + msg2 "clean_cache_iso: ${clean_cache_iso}" msg2 "images_only: ${images_only}" msg2 "iso_only: ${iso_only}" @@ -125,7 +126,7 @@ load_config "${SYSCONFDIR}/manjaro-tools.conf" clean_first=true clean_cache_xorg=true clean_cache_lng=true -clean_cache_iso=false +clean_cache_iso=true pretend=false images_only=false @@ -140,7 +141,7 @@ usage() { echo " -b Branch [default: ${branch}]" echo ' -r Chroots directory' echo " [default: ${chroots_iso}]" - echo ' -w Enable clean iso cache' + echo ' -w Disable clean iso cache' echo ' -c Disable clean work dir' echo ' -x Disable clean xorg cache' echo ' -l Disable clean lng cache' @@ -165,7 +166,7 @@ while getopts "${opts}" arg; do b) branch="$OPTARG" ;; r) chroots_iso="$OPTARG" ;; c) clean_first=false ;; - w) clean_cache_iso=true; iso_args+=(-f) ;; + w) clean_cache_iso=false; iso_args+=(-f) ;; x) clean_cache_xorg=false ;; l) clean_cache_lng=false ;; i) images_only=true ;;