Template repository for projects on bash
Go to file Use this template
2023-05-01 16:59:58 +03:00
.gitignore ignore IDE settings 2023-01-05 19:11:45 +03:00
LICENSE Initial commit 2023-01-05 19:02:20 +03:00
README.md simple code refactoring 2023-03-14 22:14:29 +03:00
script.conf simple code refactoring 2023-03-14 22:14:29 +03:00
script.sh change chebang 2023-05-01 16:59:58 +03:00

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:

POSITION PARAMETERS DESCRIPTION DEFAULT
1 [qn] execution without pauses
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