Skip to content

Commit 5142e0c

Browse files
authored
Update _updatePublisher.sh
1 parent 4725896 commit 5142e0c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

_updatePublisher.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ fi
9898
if [[ $skipPrompts != true ]]; then
9999
message="Update scripts? (enter 'y' or 'Y' to continue, any other key to cancel)?"
100100
read -r -p "$message" response
101-
fi
101+
fi
102102

103103
if [[ $skipPrompts == true ]] || [[ $response =~ ^[yY].*$ ]]; then
104-
echo "Downloading most recent scripts "
105-
# test
104+
echo "Downloading most recent scripts"
105+
106106
curl -L $update_bat_url -o /tmp/_updatePublisher.new
107107
cp /tmp/_updatePublisher.new _updatePublisher.bat
108108
rm /tmp/_updatePublisher.new
@@ -121,6 +121,10 @@ if [[ $skipPrompts == true ]] || [[ $response =~ ^[yY].*$ ]]; then
121121
rm /tmp/_gencontinuous.new
122122

123123
curl -L $gen_sh_url -o /tmp/_genonce.new
124+
if [ $? -ne 0 ]; then
125+
echo "Fehler beim Herunterladen von $gen_sh_url"
126+
exit 1
127+
fi
124128
cp /tmp/_genonce.new _genonce.sh
125129
chmod +x _genonce.sh
126130
rm /tmp/_genonce.new

0 commit comments

Comments
 (0)