Prepare file for applying files
This commit is contained in:
parent
1fff6d0f23
commit
0512d438cd
1 changed files with 26 additions and 0 deletions
26
lib/apply_changes.sh
Normal file
26
lib/apply_changes.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue