Removed compatibility check from deploy script and other now useless stuff.
This commit is contained in:
+5
-13
@@ -37,7 +37,7 @@ get_valid_input() {
|
|||||||
# Handle empty input
|
# Handle empty input
|
||||||
if [[ -z "${INPUT}" ]]; then
|
if [[ -z "${INPUT}" ]]; then
|
||||||
if [[ "${MANDATORY}" == true ]]; then
|
if [[ "${MANDATORY}" == true ]]; then
|
||||||
gum style --foreground "#ff0000" -- "✖ This field is mandatory."
|
gum style --foreground "#ff0000" -- " ❌ This field is mandatory."
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
INPUT=""
|
INPUT=""
|
||||||
@@ -51,7 +51,7 @@ get_valid_input() {
|
|||||||
export "${VAR_NAME}"="${INPUT}"
|
export "${VAR_NAME}"="${INPUT}"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
gum style --foreground "#ff0000" -- "✖ Invalid format. Please try again."
|
gum style --foreground "#ff0000" -- " ❌ Invalid format. Please try again."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
export "${VAR_NAME}"="${INPUT}"
|
export "${VAR_NAME}"="${INPUT}"
|
||||||
@@ -69,7 +69,7 @@ cleanup() {
|
|||||||
|
|
||||||
rm -${DIR_RM_FLAGS} ${TMP_FILES_PATH}/
|
rm -${DIR_RM_FLAGS} ${TMP_FILES_PATH}/
|
||||||
|
|
||||||
if ps -p ${BRIDGE_PID:-} > /dev/null; then
|
if [[ -n "${BRIDGE_PID:-}" ]] && ps -p ${BRIDGE_PID} > /dev/null; then
|
||||||
kill ${BRIDGE_PID}
|
kill ${BRIDGE_PID}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -77,14 +77,6 @@ cleanup() {
|
|||||||
hierarchy_preparation() {
|
hierarchy_preparation() {
|
||||||
echod "\n 🔄 Preparing the folder hierarchy for the final configuration..."
|
echod "\n 🔄 Preparing the folder hierarchy for the final configuration..."
|
||||||
|
|
||||||
if [[ -e config/* ]]; then
|
|
||||||
echo " ⚠️ It seems you have already run this script. Previously generated files need to be cleaned up."
|
|
||||||
OLD_CONFIG_PATH="trash/$(date +"%Y-%m-%d-%Hh%M")/"
|
|
||||||
mkdir -${MKDIR_FLAGS} ${OLD_CONFIG_PATH}
|
|
||||||
mv -${MV_FLAGS} config/ ${OLD_CONFIG_PATH}
|
|
||||||
echo " ✅ Your files have been moved to the ${OLD_CONFIG_PATH} directory. You can retrieve them there if needed."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Script folders
|
# Script folders
|
||||||
mkdir -${MKDIR_FLAGS} ${TMP_FILES_PATH}/config
|
mkdir -${MKDIR_FLAGS} ${TMP_FILES_PATH}/config
|
||||||
mkdir -${MKDIR_FLAGS} ${TMP_FILES_PATH}/logs
|
mkdir -${MKDIR_FLAGS} ${TMP_FILES_PATH}/logs
|
||||||
@@ -968,7 +960,6 @@ set -euo pipefail
|
|||||||
clear
|
clear
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
compatibility_check
|
|
||||||
# --- PRE MAIN LOGIC ---<
|
# --- PRE MAIN LOGIC ---<
|
||||||
|
|
||||||
|
|
||||||
@@ -998,4 +989,5 @@ else
|
|||||||
else
|
else
|
||||||
launch_tui
|
launch_tui
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# --- MAIN LOGIC ---<
|
||||||
Reference in New Issue
Block a user