From ba047a3c69c63f4e7920dadf1c9a230f7cde2f4a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 30 Jan 2022 14:38:02 -0300 Subject: [PATCH] Update runScript() --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index fd487df..45818ca 100755 --- a/install.sh +++ b/install.sh @@ -611,11 +611,6 @@ runScript() { exit 0 fi - if [ ! -f "/etc/dialogrc" ]; then - curl -LO "https://raw.githubusercontent.com/santilococo/cdotfis/master/dotfiles/.dialogrc" 2>&1 | debug - mv .dialogrc /etc/dialogrc - fi - local i=0; found=false loadVar "lastStep" if [ -n "$lastStep" ]; then @@ -643,6 +638,11 @@ runScript() { tput reset fi + if [ ! -f "/etc/dialogrc" ]; then + curl -LO "https://raw.githubusercontent.com/santilococo/cdotfis/master/dotfiles/.dialogrc" 2>&1 | debug + mv .dialogrc /etc/dialogrc + fi + trap 'printAndExit "Received SIGINT signal."' INT calcAndRun dialog --title "calsais" --msgbox "\"\n${welcomeMsg}\"" 7 WIDTH