diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-01 20:59:34 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:01:06 -0600 |
commit | af031c7ec11c03d6092e168d8a220cc221d64aea (patch) | |
tree | 8a4f538930fb4a04d0014b09a28744a812c3598d /src/abslibre-tools | |
parent | 0cf1f12e623aa27e96f5c2a6f749913197a1a525 (diff) |
libre{stage,release}: Standardize message for running as root.
Diffstat (limited to 'src/abslibre-tools')
-rwxr-xr-x | src/abslibre-tools/librerelease | 2 | ||||
-rwxr-xr-x | src/abslibre-tools/librestage | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 38fa0ac..08960bc 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -99,7 +99,7 @@ function clean { function main { if [ -w / ]; then - error "Run $0 as normal user" + error "This program should be run as regular user" exit 1 fi diff --git a/src/abslibre-tools/librestage b/src/abslibre-tools/librestage index 52e761a..0cb7a27 100755 --- a/src/abslibre-tools/librestage +++ b/src/abslibre-tools/librestage @@ -34,6 +34,11 @@ usage() { } main() { + if [[ -w / ]]; then + error "This program should be run as regular user" + return 1 + fi + # Parse options, set up while getopts 'h' arg; do case $arg in @@ -47,11 +52,6 @@ main() { return 1; fi - if [[ -w / ]]; then - error "This script should be run as regular user" - return 1 - fi - [[ ! -e ./PKGBUILD ]] && { error "PKGBUILD not found" return 1 |