Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed argument checking
ivan committed Nov 19, 2019
1 parent 7f44918 commit 28eefac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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.