toolrunner should which tool before invoking (#220)

This commit is contained in:
eric sciple authored and GitHub committed 2019-11-18 16:20:01 -05:00
1 parent 021d032160
commit 42ec8de762
6 files changed
+243 -6

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
@echo off
setlocal
set index=0
:check_arg
set arg=%1
if not defined arg goto :eof
set "arg=%arg:"=<quote>%"
echo args[%index%]: "%arg%"
set /a index=%index%+1
shift
goto check_arg
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# store arguments in a special array
args=("$@")
# get number of elements
ELEMENTS=${#args[@]}
# echo each element
for (( i=0;i<$ELEMENTS;i++)); do
echo "args[$i]: \"${args[${i}]}\""
done