From: Andrew Sichevoi Date: Thu, 6 Sep 2012 05:28:48 +0000 (+0400) Subject: Added an command line argument for explicit running X-Git-Url: http://git.thekondor.net/?a=commitdiff_plain;ds=inline;p=scripts.git Added an command line argument for explicit running --- diff --git a/acpi-call-installer/install-acpi-call.sh b/acpi-call-installer/install-acpi-call.sh index 086b262..ed5d5df 100755 --- a/acpi-call-installer/install-acpi-call.sh +++ b/acpi-call-installer/install-acpi-call.sh @@ -130,7 +130,10 @@ _install_dkms_module() _error "DKMS module cannot be installed" fi } - + +if [ x"run" != x"$1" ]; then + _error "To confirm your intentions execute with 'run' argument" +fi _check_permissions _check_if_already_installed