From 7f93ac9bb6481e3e0ca80d7b4cf4ca2bb2d0d5b7 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 10 Mar 2018 12:09:36 +0800 Subject: config file $HOME/.liveusb-builder, move isofiles to $ISOPATH and set default $ISOPATH location to $HOME/isofiles --- buildlive | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'buildlive') diff --git a/buildlive b/buildlive index 22b6a00..30fea28 100755 --- a/buildlive +++ b/buildlive @@ -35,6 +35,11 @@ options: EOF } +unset ISOPATH +CFGFILE="$HOME/.liveusb-builder" +test -f "$CFGFILE" && source "$CFGFILE" || true +ISOPATH=${ISOPATH:-"$HOME/isofiles"} + while [[ -n "$1" ]] do case "$1" in @@ -100,7 +105,7 @@ do ISOLIST=("${ISOLIST[@]}" "$ISOFILE") ISONAMELIST=("${ISONAMELIST[@]}" "$ISONAME") - if [ -f "isofiles/$ISOFILE" ] && checksum_verify; then + if [ -f "$ISOPATH/$ISOFILE" ] && checksum_verify; then true else download_iso -- cgit v1.2.3