Page MenuHomeDevCentral

D1859.diff
No OneTemporary

D1859.diff

diff --git a/bin/getcredentials b/bin/getcredentials
--- a/bin/getcredentials
+++ b/bin/getcredentials
@@ -35,20 +35,20 @@
if [ $# -lt 1 ]
then
- echo "Usage: getcredentials <id> [password|username|title]"
+ >&2 echo "Usage: getcredentials <id> [password|username|title]"
exit 1
fi
if echo $1 | egrep -q '^[0-9]+$'; then
ID=$1
else
- echo "A positive integer id is expected."
+ >&2 echo "A positive integer id is expected."
exit 2
fi
if [ "${#ID}" -gt "${#MAX_ID}" ] || [ "$ID" -gt "$MAX_ID" ]
then
- echo "The id must be equal or lesser than $MAX_ID."
+ >&2 echo "The id must be equal or lesser than $MAX_ID."
exit 4
fi

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 11:38 (22 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231745
Default Alt Text
D1859.diff (647 B)

Event Timeline