template-bash/README.md
2023-01-05 19:52:51 +03:00

860 B

template-bash

Template repository for projects on bash


script.sh

Description:

returning current username if privileged rights are exist
or
returning error, if privileged rights are not exist

Dependencies:

  • bash (tested version 5.1.4 on Debian GNU/Linux 11)
POSITION PARAMETERS DESCRIPTION DEFAULT
1 [qn] execution without pauses None
2 [/path/to/conf] path to config ./script.conf

Example usage in terminal with bash:

bash ./script.sh qn ./script.conf

Example usage in terminal with make the script executable:

chmod u+x ./script.sh
script.sh