Skip to content

Commit e432123

Browse files
committed
test2
1 parent 529bc4b commit e432123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

customize_firmware.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ check_download() {
112112
echo $OUTPUT_FILE >> /root/install_customice.log
113113

114114

115-
wget --waitretry=10 -t 5 -O "/root/$OUTPUT_FILE" "$URL"
115+
out=$(wget --waitretry=10 -t 5 -O "/root/$OUTPUT_FILE" "$URL")
116116

117-
wait && if [[ $? -eq 0 ]]; then
117+
wait $out && if [[ $? -eq 0 ]]; then
118118
if check_hash "$OUTPUT_FILE"; then
119119
echo "Hash is okay" >> /root/install_customice.log
120120
break
@@ -263,7 +263,7 @@ if [ ! -f "$FILE" ]
263263
wait $processes53 && echo 'delete logo.svg' >> /root/install_customice.log
264264
fi
265265

266-
process=$(check_download "https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh" "d6450c03cd2228f8792c284f2dc5ec87524f3ab44b078d4fd70b5bd9db178db4 -" "openWRT23_install.sh")
266+
process=$(check_download "https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh" "b86e524d522def9ee4f032667f2bff088e3a185a1e8cfe3f7e663fae98af8022" "openWRT23_install.sh")
267267
wait $process && echo 'download openWRT23_install.sh' >> /root/install_customice.log
268268
process1=$(wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/logo.svg -P /www/)
269269
wait $process1 && echo 'download logo.svg' >> /root/install_customice.log

0 commit comments

Comments
 (0)