projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebbc32a
)
Add quotes around incorrect command name
author
Dan Poltawski
<dan@moodle.com>
Wed, 6 Mar 2013 02:50:33 +0000
(10:50 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Wed, 6 Mar 2013 02:50:33 +0000
(10:50 +0800)
The problem I was facing was that I couldn't tell that I was typing
the wrong command.
moodle
patch
|
blob
|
history
diff --git
a/moodle
b/moodle
index
130f627
..
284dafb
100755
(executable)
--- a/
moodle
+++ b/
moodle
@@
-73,11
+73,11
@@
BIN=`resolve $COMMAND`
if [ $? == 1 ]
then
- echo "Unknown Moodle command
$1
..."
+ echo "Unknown Moodle command
'$1'
..."
exit 1
elif [ ! -x "$BIN" ]
then
- echo "Permission denied.
$BIN
is not executable."
+ echo "Permission denied.
'$BIN'
is not executable."
exit 1
fi