Skip to content

Commit fb127e6

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

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

_updatePublisher.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ gencont_bat_url=$scriptdlroot/_gencontinuous.bat
1212
gencont_sh_url=$scriptdlroot/_gencontinuous.sh
1313
gen_sh_url=$scriptdlroot/_genonce.sh
1414
update_sh_url=$scriptdlroot/_updatePublisher.sh
15+
build_sh_url=$scriptdlroot/_build.sh
16+
build_bat_url=$scriptdlroot/_build.bat
1517

1618
skipPrompts=false
1719
FORCE=false
@@ -101,7 +103,17 @@ if [[ $skipPrompts != true ]]; then
101103
fi
102104

103105
if [[ $skipPrompts == true ]] || [[ $response =~ ^[yY].*$ ]]; then
104-
echo "Downloading most recent scripts"
106+
echo "Downloading most recent scripts:"
107+
108+
curl -L $build_bat_url -o /tmp/_build.new
109+
cp /tmp/_build.new _build.bat
110+
rm /tmp/_build.new
111+
112+
113+
curl -L $build_sh_url -o /tmp/_build.new
114+
cp /tmp/_build.new _build.sh
115+
chmod +x _build.sh
116+
rm /tmp/_build.new
105117

106118
curl -L $update_bat_url -o /tmp/_updatePublisher.new
107119
cp /tmp/_updatePublisher.new _updatePublisher.bat
@@ -121,10 +133,6 @@ if [[ $skipPrompts == true ]] || [[ $response =~ ^[yY].*$ ]]; then
121133
rm /tmp/_gencontinuous.new
122134

123135
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
128136
cp /tmp/_genonce.new _genonce.sh
129137
chmod +x _genonce.sh
130138
rm /tmp/_genonce.new

0 commit comments

Comments
 (0)