From 4b4d58c8032f77ebb0f350033fc655907a2ef300 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 23 Oct 2025 00:37:58 +0400 Subject: [PATCH] fix install.sh no configuration file --- bin/pct-default | 3 +++ install.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/pct-default b/bin/pct-default index 842d660..4481cb6 100755 --- a/bin/pct-default +++ b/bin/pct-default @@ -26,6 +26,9 @@ function show_defaults { set -Eue [[ "$ARG1" == '--help' ]] && usage && exit 1 +[[ ! -f $DEFAULT_CONFIG ]] && >&2 echo 'configuration file missing!' && exit 2 + + if [[ "$ARG1" == '--edit' ]]; then editor $DEFAULT_CONFIG else diff --git a/install.sh b/install.sh index 680619d..02d2208 100755 --- a/install.sh +++ b/install.sh @@ -81,7 +81,7 @@ EOF function initialize { if [[ ! -d /opt/miaou-proxmox/config ]]; then echo 'initializing default values...' - mkdir /opt-miaou-proxmox/config + mkdir /opt/miaou-proxmox/config choose_default else echo '------------------------'