projects
/
hvutilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
febcb78
)
Revert commit <<Convert vs script to getopts>>
author
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 17 Jun 2014 18:11:02 +0000
(14:11 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 17 Jun 2014 18:11:02 +0000
(14:11 -0400)
scripts/vs
patch
|
blob
|
history
diff --git
a/scripts/vs
b/scripts/vs
index
d1c9fe4
..
69709ad
100755
(executable)
--- a/
scripts/vs
+++ b/
scripts/vs
@@
-10,23
+10,10
@@
print_usage()
echo " -h display this help and exit"
}
echo " -h display this help and exit"
}
-while getopts "h" flag ;do
- case ${flag} in
- h)
- print_usage
- exit 0
- ;;
- ?)
- echo "${PROG_NAME}: Invalid option: ${OPTARG}."
- echo "Try \`${PROG_NAME} --help' for more information."
- exit 1
- ;;
- esac
-done
-shift `expr "${OPTIND}" - 1`
-
-# `$#' now represents the number of arguments after the options.
-# `$1' is the first argument, etc.
+if [ "x${1}" = "x--help" ]; then
+ print_usage
+ exit 1
+fi
SVN_ST_UNKNOWN_COLOR=$(echo -e '\033[1;34m') # Blue
SVN_ST_DELETED_COLOR=$(echo -e '\033[0;31m') # Red
SVN_ST_UNKNOWN_COLOR=$(echo -e '\033[1;34m') # Blue
SVN_ST_DELETED_COLOR=$(echo -e '\033[0;31m') # Red