Prepare file for applying files

This commit is contained in:
HikariKnight 2022-03-10 14:23:45 +01:00
parent 1fff6d0f23
commit 0512d438cd
No known key found for this signature in database
GPG key ID: E8B239063B022F5A

26
lib/apply_changes.sh Normal file
View file

@ -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