Skip to content
Permalink
Browse files

Fixed argument checking

  • Loading branch information
ivan committed Nov 19, 2019
1 parent 7f44918 commit 28eefac63ee6f126f482868cb4762aefd227eec2
Showing with 7 additions and 1 deletion.
  1. +7 −1 demo/grouper/ssh-tunnel-redir-fix.sh
@@ -11,7 +11,13 @@ declare -a fileList=(
"idp/shibboleth-idp/metadata/midpoint-sp-new.xml"
)

echo "Directory: $1";
if [ $# -eq 0 ]
then
echo 'Please specify a directory as the first argument (e.g. ".")'
exit
fi

echo "Working in directory: $1";
for f in "${fileList[@]}"
do
echo "Replacing in: $1/$f..."

0 comments on commit 28eefac

Please sign in to comment.
You can’t perform that action at this time.