From 2d510e4a688aae05753735781f4eeb5a2a7237f5 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Mon, 12 Feb 2024 11:02:50 +0100 Subject: Bash things --- configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 8e67254..a351dd5 100755 --- a/configure +++ b/configure @@ -3,6 +3,18 @@ set -o pipefail M4_DEF_FILE="system.m4" +if [ -f "${M4_DEF_FILE}" ]; then + dialog \ + --backtitle "Dotfile configuration" \ + --title "Overwrite settings?" \ + --defaultno \ + --yesno "A system.m4 file already exists, do you want to make that file over again? If you press No, the Makefile will be processed again based on the current system.m4 file." 0 0 + if [ "$?" -eq 1 ]; then + m4 -P Makefile.m4 > Makefile + exit 0 + fi +fi + HOME_DIRECTORY=$(dialog \ --backtitle "Dotfile configuration" \ --title "Configure" \ -- cgit v1.2.3