mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
fix: remove duplicate download check for rustfs-console-latest.zip
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# check ./rustfs/static/index.html not exists
|
||||
if [ ! -f ./rustfs/static/index.html ]; then
|
||||
echo "Downloading rustfs-console-latest.zip"
|
||||
# download rustfs-console-latest.zip do not show log
|
||||
curl -s -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" -o tempfile.zip && unzip -q -o tempfile.zip -d ./rustfs/static && rm tempfile.zip
|
||||
fi
|
||||
|
||||
if [ -z "$SKIP_BUILD" ]; then
|
||||
cargo build -p rustfs --bins
|
||||
fi
|
||||
@@ -34,12 +41,4 @@ if [ -n "$1" ]; then
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# check ./rustfs/static/index.html not exists
|
||||
if [ ! -f ./rustfs/static/index.html ]; then
|
||||
echo "Downloading rustfs-console-latest.zip"
|
||||
# download rustfs-console-latest.zip do not show log
|
||||
curl -s -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" -o tempfile.zip && unzip -q -o tempfile.zip -d ./rustfs/static && rm tempfile.zip
|
||||
fi
|
||||
|
||||
cargo run --bin rustfs
|
||||
Reference in New Issue
Block a user