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