summaryrefslogtreecommitdiff
path: root/utils/getsrcs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/getsrcs.sh')
-rwxr-xr-xutils/getsrcs.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/utils/getsrcs.sh b/utils/getsrcs.sh
index d6a8ba2d88..2432edfa75 100755
--- a/utils/getsrcs.sh
+++ b/utils/getsrcs.sh
@@ -18,13 +18,11 @@
# details.
##===----------------------------------------------------------------------===##
-if test $# -gt 1 ; then
- if test "$1" = "-topdir" ; then
- TOPDIR="$2"
- shift; shift;
- else
- TOPDIR=`llvm-config --src-root`
- fi
+if test "$1" = "-topdir" ; then
+ TOPDIR="$2"
+ shift; shift;
+else
+ TOPDIR=`llvm-config --src-root`
fi
if test -d "$TOPDIR" ; then