Skip to content
Snippets Groups Projects
Commit 5c0b01a0 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.add init confirm

parent 065cbc34
No related branches found
No related tags found
No related merge requests found
...@@ -251,7 +251,7 @@ if [[ "$subcommand" != register ]] && [[ "$subcommand" != "" ]]; then ...@@ -251,7 +251,7 @@ if [[ "$subcommand" != register ]] && [[ "$subcommand" != "" ]]; then
[[ ! -f /etc/linuxconf.conf ]] && lcf_die "Please run '$0 register <path/to/masterconf.sh>' at least once" [[ ! -f /etc/linuxconf.conf ]] && lcf_die "Please run '$0 register <path/to/masterconf.sh>' at least once"
fi fi
if [[ "$subcommand" = register ]]; then if [[ "$subcommand" = register ]]; then
lcf_echo2 "Confirm linuxconf init at $(pwd) ? Make sure all (desired) user have read access!" lcf_echo2 "Confirm linuxconf init at $(dirname "$(realpath "$2")") ? Make sure all (desired) user have read access!"
read -p "Confirm ? " || exit 0 read -p "Confirm ? " || exit 0
lci_register "$2" lci_register "$2"
lci_install_startup_hook || lcf_die "failed to install on_startup hook" lci_install_startup_hook || lcf_die "failed to install on_startup hook"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment