[buildiso] enable remove iso file by default; add iso cache arg to display function

This commit is contained in:
udeved 2015-01-26 00:24:55 +01:00
parent e5d89f7ee3
commit d55c552049

View file

@ -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> Branch [default: ${branch}]"
echo ' -r <dir> 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 ;;