Skip to content
Snippets Groups Projects
Commit 72885341 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

extended getAnswerfile function

parent 75122d0b
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,24 @@ getAnswerfile() {
if [ $# -eq 2 ];
then
curl --silent --output "$2" $1
HOSTNAME=$(hostname)
while 1
do
curl --silent --output "$2" "$1/${HOSTNAME}"
if [ $? -ne 0 ];
then
read -p "enter name of the answer file (press enter to stop): " HOSTNAME
if [ "x${HOSTNAME}" = "x" ];
then
break;
fi
else
retval=0
fi
done
retval=$?
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment