mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add rama proxy feature flag
This commit is contained in:
parent
e01b06b238
commit
aa667d48e4
1 changed files with 5 additions and 1 deletions
|
|
@ -237,6 +237,9 @@ parse_arguments() {
|
||||||
--include-python)
|
--include-python)
|
||||||
warn "--include-python is deprecated and ignored. Python ecosystem is now included by default."
|
warn "--include-python is deprecated and ignored. Python ecosystem is now included by default."
|
||||||
;;
|
;;
|
||||||
|
--experimental-rama-proxy)
|
||||||
|
USE_RAMA_PROXY=true
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
error "Unknown argument: $arg"
|
error "Unknown argument: $arg"
|
||||||
;;
|
;;
|
||||||
|
|
@ -248,6 +251,7 @@ parse_arguments() {
|
||||||
main() {
|
main() {
|
||||||
# Initialize argument flags
|
# Initialize argument flags
|
||||||
USE_CI_SETUP=false
|
USE_CI_SETUP=false
|
||||||
|
USE_RAMA_PROXY=false
|
||||||
|
|
||||||
# Parse command-line arguments
|
# Parse command-line arguments
|
||||||
parse_arguments "$@"
|
parse_arguments "$@"
|
||||||
|
|
@ -329,7 +333,7 @@ main() {
|
||||||
info "Binary installed to: $FINAL_FILE"
|
info "Binary installed to: $FINAL_FILE"
|
||||||
|
|
||||||
# Download safechain-proxy
|
# Download safechain-proxy
|
||||||
if [ "$OS" = "macos" ] || [ "$OS" = "linux" ] || [ "$OS" = "linuxstatic" ]; then
|
if [ "$USE_RAMA_PROXY" = "true" ] && { [ "$OS" = "macos" ] || [ "$OS" = "linux" ] || [ "$OS" = "linuxstatic" ]; }; then
|
||||||
info "Downloading safechain-proxy..."
|
info "Downloading safechain-proxy..."
|
||||||
|
|
||||||
if [ "$OS" = "macos" ]; then
|
if [ "$OS" = "macos" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue