Patchwork [2/5] setup-environment: specify script name correctly

login
register
mail settings
Submitter Trevor Woerner
Date March 30, 2014, 10:04 p.m.
Message ID <1396217092-30829-3-git-send-email-trevor.woerner@linaro.org>
Download mbox | patch
Permalink /patch/69659/
State Not Applicable
Delegated to: Otavio Salvador
Headers show

Comments

Trevor Woerner - March 30, 2014, 10:04 p.m.
When giving an error message, be sure to specify the script name correctly
(otherwise it just names your shell).

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
---
 setup-environment | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/setup-environment b/setup-environment
index 5466103..0ad1c11 100644
--- a/setup-environment
+++ b/setup-environment
@@ -124,7 +124,7 @@  for f in $CWD/sources/base/*; do
     fi
 done
 if [ "$updated" = "true" ]; then
-    echo "The project root content has been updated. Please run $0 again."
+    echo "The project root content has been updated. Please run $PROGNAME again."
     return
 fi