From efa5103fea2dbdae98dbfe230d7d450e0703e322 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 13 May 2022 11:48:19 +0200 Subject: setup-apkcache: do no prompt when DIR is specified When DIR is specified we run in non-interactive mode and should not block. --- setup-apkcache.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup-apkcache.in') diff --git a/setup-apkcache.in b/setup-apkcache.in index 5e40c21..2c03c7a 100644 --- a/setup-apkcache.in +++ b/setup-apkcache.in @@ -142,9 +142,9 @@ fi if [ -z "$suggestion" ]; then suggestion=none fi -cachedir=$1 +cachedir="$1" -while [ -z "$cachedir" ]; do +while [ $# -eq 0 ] && [ -z "$cachedir" ]; do ask "Enter apk cache directory (or '?' or 'none')" "$suggestion" cachedir="$resp" if [ "$cachedir" = "?" ]; then -- cgit v1.2.3