From 0512d438cd6e2a833a8c604e7366afbf5310a6a9 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Thu, 10 Mar 2022 14:23:45 +0100 Subject: [PATCH] Prepare file for applying files --- lib/apply_changes.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/apply_changes.sh diff --git a/lib/apply_changes.sh b/lib/apply_changes.sh new file mode 100644 index 0000000..d9c1f41 --- /dev/null +++ b/lib/apply_changes.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +function apply_CHANGES () { + clear + # Get the config paths + source "$SCRIPTDIR/lib/paths.sh" + + read -p "Do you want to proceed with the installation of the files? [y/N]: " YESNO + + case "${YESNO}" in + [Yy]*) + echo "" + ;; + *) + exit 1 + ;; + esac +} + + +function main () { + SCRIPTDIR=$(dirname "$(which $0)" | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//") + apply_CHANGES +} + +main