diff --git a/.github/workflows/backend.yaml b/.github/workflows/backend.yaml index 2a86721ded..7f6d68cff1 100644 --- a/.github/workflows/backend.yaml +++ b/.github/workflows/backend.yaml @@ -68,9 +68,6 @@ jobs: integration_tests: name: run integration tests runs-on: ubuntu-latest - defaults: - run: - shell: bash steps: - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/pre_release_tests.yaml b/.github/workflows/pre_release_tests.yaml index 311785710f..6f3abee930 100644 --- a/.github/workflows/pre_release_tests.yaml +++ b/.github/workflows/pre_release_tests.yaml @@ -21,5 +21,4 @@ jobs: shared-key: "build-debug" save-if: "false" - name: Run integration tests - shell: bash run: ./scripts/run-integration-tests.sh $GITHUB_REF_NAME diff --git a/scripts/deploy-local.sh b/scripts/deploy-local.sh index c4085a3b72..331cfc52f7 100755 --- a/scripts/deploy-local.sh +++ b/scripts/deploy-local.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Deploys everything needed to test OpenChat locally (OpenChat, OpenStorage and the NNS canisters) diff --git a/scripts/deploy-testnet.sh b/scripts/deploy-testnet.sh index 4ad3a10256..9d7e8cb72e 100755 --- a/scripts/deploy-testnet.sh +++ b/scripts/deploy-testnet.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash NETWORK=$1 IC_URL=$2 @@ -45,4 +45,4 @@ dfx --identity $IDENTITY canister create --provisional-create-canister-effective $NNS_CMC_CANISTER_ID \ $NNS_SNS_WASM_CANISTER_ID \ $NNS_INDEX_CANISTER_ID \ - true \ \ No newline at end of file + true \ diff --git a/scripts/deploy-website-prod-test.sh b/scripts/deploy-website-prod-test.sh index bb4a5a0cb9..af8d3d370f 100755 --- a/scripts/deploy-website-prod-test.sh +++ b/scripts/deploy-website-prod-test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in DFX identity name and website version # eg './deploy-website-prod-test.sh openchat 2.0.305' diff --git a/scripts/deploy-website-prod.sh b/scripts/deploy-website-prod.sh index 640df58266..9006456d45 100755 --- a/scripts/deploy-website-prod.sh +++ b/scripts/deploy-website-prod.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in DFX identity name and website version # eg './deploy-website-prod.sh openchat 2.0.305' diff --git a/scripts/deploy-website-testnet.sh b/scripts/deploy-website-testnet.sh index 4e33a0993c..83cc316a22 100755 --- a/scripts/deploy-website-testnet.sh +++ b/scripts/deploy-website-testnet.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in DFX identity name, website version and network name # eg './deploy-website-testnet.sh openchat 2.0.305 small06' diff --git a/scripts/deploy-website-web-test.sh b/scripts/deploy-website-web-test.sh index 8c5d0bcdec..f63642075a 100755 --- a/scripts/deploy-website-web-test.sh +++ b/scripts/deploy-website-web-test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in DFX identity name and website version # eg './deploy-website-web-test.sh openchat 2.0.305' diff --git a/scripts/deploy.sh b/scripts/deploy.sh index cb877de604..041858c585 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in network name, IC url, identity name, Governance canisterId, Ledger canisterId, CMC canisterId, and test mode (true/false) # eg './deploy.sh ic https://ic0.app/ openchat rrkah-fqaaa-aaaaa-aaaaq-cai ryjl3-tyaaa-aaaaa-aaaba-cai rkp4c-7iaaa-aaaaa-aaaca-cai false' @@ -68,4 +68,4 @@ cargo run \ --nns-ledger $NNS_LEDGER_CANISTER_ID \ --nns-cmc $NNS_CMC_CANISTER_ID \ --nns-sns-wasm $NNS_SNS_WASM_CANISTER_ID \ - --nns-index $NNS_INDEX_CANISTER_ID \ No newline at end of file + --nns-index $NNS_INDEX_CANISTER_ID diff --git a/scripts/docker-build.sh b/scripts/docker-build.sh index 0ba5953fb9..517b083c65 100755 --- a/scripts/docker-build.sh +++ b/scripts/docker-build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash SCRIPT=$(readlink -f "$0") SCRIPT_DIR=$(dirname "$SCRIPT") diff --git a/scripts/make_custom_function_proposal.sh b/scripts/make_custom_function_proposal.sh index e4c603359b..a445b44bd2 100755 --- a/scripts/make_custom_function_proposal.sh +++ b/scripts/make_custom_function_proposal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cd into folder containing this script SCRIPT=$(readlink -f "$0") diff --git a/scripts/make_proposal.sh b/scripts/make_proposal.sh index 615fc4e976..4ea8f64346 100755 --- a/scripts/make_proposal.sh +++ b/scripts/make_proposal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cd into root of OpenChat repo SCRIPT=$(readlink -f "$0") diff --git a/scripts/make_upgrade_canister_proposal.sh b/scripts/make_upgrade_canister_proposal.sh index 0484bef111..0942468de6 100755 --- a/scripts/make_upgrade_canister_proposal.sh +++ b/scripts/make_upgrade_canister_proposal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cd into root of OpenChat repo SCRIPT=$(readlink -f "$0") @@ -34,7 +34,7 @@ if [ "$FUNCTION_ID" -ge "1000" ] ; then # Setup variables WASM_FILE=$CANISTER_NAME.wasm.gz WASM_PATH=$WASM_FOLDER/$WASM_FILE - PROPOSAL_BUILDER_FOLDER=$SCRIPT_DIR/../backend/canister_upgrade_proposal_builder + PROPOSAL_BUILDER_FOLDER=$SCRIPT_DIR/../backend/canister_upgrade_proposal_builder PROPOSAL_FILE=proposal.candid PROPOSAL_BUILDER_PATH=$PROPOSAL_BUILDER_FOLDER/$PROPOSAL_FILE diff --git a/scripts/proposals/add_canister_to_cycles_dispenser.sh b/scripts/proposals/add_canister_to_cycles_dispenser.sh index cace172ae9..997f7f9ae7 100755 --- a/scripts/proposals/add_canister_to_cycles_dispenser.sh +++ b/scripts/proposals/add_canister_to_cycles_dispenser.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults CANISTER_ID=$1 diff --git a/scripts/proposals/add_platform_operator.sh b/scripts/proposals/add_platform_operator.sh index 3f04d55e23..f769116c0c 100755 --- a/scripts/proposals/add_platform_operator.sh +++ b/scripts/proposals/add_platform_operator.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults USER_ID=$1 diff --git a/scripts/proposals/add_token_to_registry.sh b/scripts/proposals/add_token_to_registry.sh index 2ce969f6f3..02455ce8bc 100755 --- a/scripts/proposals/add_token_to_registry.sh +++ b/scripts/proposals/add_token_to_registry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults TOKEN_NAME=$1 diff --git a/scripts/proposals/appoint_admins_in_proposals_group.sh b/scripts/proposals/appoint_admins_in_proposals_group.sh index a7dff4351c..9cc329c07e 100755 --- a/scripts/proposals/appoint_admins_in_proposals_group.sh +++ b/scripts/proposals/appoint_admins_in_proposals_group.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash GOVERNANCE_CANISTER_ID=$1 SNS_NAME=$2 diff --git a/scripts/proposals/call_infinity_swap_burn.sh b/scripts/proposals/call_infinity_swap_burn.sh index ae33486670..044054a089 100755 --- a/scripts/proposals/call_infinity_swap_burn.sh +++ b/scripts/proposals/call_infinity_swap_burn.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the scripts root SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/call_infinity_swap_mint.sh b/scripts/proposals/call_infinity_swap_mint.sh index 77804032a9..c8b971934b 100755 --- a/scripts/proposals/call_infinity_swap_mint.sh +++ b/scripts/proposals/call_infinity_swap_mint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the scripts root SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/call_infinity_swap_receive_tokens.sh b/scripts/proposals/call_infinity_swap_receive_tokens.sh index 806ae3462f..66d99a610c 100755 --- a/scripts/proposals/call_infinity_swap_receive_tokens.sh +++ b/scripts/proposals/call_infinity_swap_receive_tokens.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the scripts root SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/call_infinity_swap_refund_transfer.sh b/scripts/proposals/call_infinity_swap_refund_transfer.sh index 6f166725be..547fe6b76a 100755 --- a/scripts/proposals/call_infinity_swap_refund_transfer.sh +++ b/scripts/proposals/call_infinity_swap_refund_transfer.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the scripts root SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/import_proposals_group_into_community.sh b/scripts/proposals/import_proposals_group_into_community.sh index 5401cf14b2..0893f6835d 100755 --- a/scripts/proposals/import_proposals_group_into_community.sh +++ b/scripts/proposals/import_proposals_group_into_community.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args GOVERNANCE_CANISTER_ID=$1 diff --git a/scripts/proposals/manage_nns_neuron.sh b/scripts/proposals/manage_nns_neuron.sh index 66a908de27..3f2f1662f7 100755 --- a/scripts/proposals/manage_nns_neuron.sh +++ b/scripts/proposals/manage_nns_neuron.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the scripts root SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/motion.sh b/scripts/proposals/motion.sh index 593c598385..e251d76796 100755 --- a/scripts/proposals/motion.sh +++ b/scripts/proposals/motion.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cd into the scripts folder SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/remove_custom_sns_function.sh b/scripts/proposals/remove_custom_sns_function.sh index 0cc25b9227..64f20219cd 100755 --- a/scripts/proposals/remove_custom_sns_function.sh +++ b/scripts/proposals/remove_custom_sns_function.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults TITLE=$1 diff --git a/scripts/proposals/set_max_concurrent_group_canister_upgrades.sh b/scripts/proposals/set_max_concurrent_group_canister_upgrades.sh index 77736652ff..f4ed35d172 100755 --- a/scripts/proposals/set_max_concurrent_group_canister_upgrades.sh +++ b/scripts/proposals/set_max_concurrent_group_canister_upgrades.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults CONCURRENCY=$1 diff --git a/scripts/proposals/set_max_concurrent_user_canister_upgrades.sh b/scripts/proposals/set_max_concurrent_user_canister_upgrades.sh index 1e7f025201..b61cea3ee7 100755 --- a/scripts/proposals/set_max_concurrent_user_canister_upgrades.sh +++ b/scripts/proposals/set_max_concurrent_user_canister_upgrades.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash TITLE="Increase max concurrent user canister upgrades to 50 per subnet" SUMMARY="It currently takes 1.5 days for all user canisters to be upgraded. diff --git a/scripts/proposals/stake_nns_neuron.sh b/scripts/proposals/stake_nns_neuron.sh index ab1aef0724..bed45b30e1 100755 --- a/scripts/proposals/stake_nns_neuron.sh +++ b/scripts/proposals/stake_nns_neuron.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the scripts root SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/transfer_from_treasury.sh b/scripts/proposals/transfer_from_treasury.sh index 57b27208c1..4d608b2ac7 100755 --- a/scripts/proposals/transfer_from_treasury.sh +++ b/scripts/proposals/transfer_from_treasury.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args TITLE=$1 diff --git a/scripts/proposals/update_cycles_dispenser_config.sh b/scripts/proposals/update_cycles_dispenser_config.sh index 945af9e164..38f5a010cb 100755 --- a/scripts/proposals/update_cycles_dispenser_config.sh +++ b/scripts/proposals/update_cycles_dispenser_config.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash TITLE="Update CyclesDispenser config" SUMMARY="Set the min cycles balance to 1000T and set the ICP burn amount to 50 ICP. diff --git a/scripts/proposals/update_token_in_registry.sh b/scripts/proposals/update_token_in_registry.sh index 3e9fe32347..8a83aa480f 100755 --- a/scripts/proposals/update_token_in_registry.sh +++ b/scripts/proposals/update_token_in_registry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults LEDGER_CANISTER_ID=$1 diff --git a/scripts/proposals/upgrade_asset_canister.sh b/scripts/proposals/upgrade_asset_canister.sh index f515306944..22efc25ccf 100755 --- a/scripts/proposals/upgrade_asset_canister.sh +++ b/scripts/proposals/upgrade_asset_canister.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cd into the folder containing this script SCRIPT=$(readlink -f "$0") diff --git a/scripts/proposals/upgrade_communities.sh b/scripts/proposals/upgrade_communities.sh index 96b42c855f..a292ae3712 100755 --- a/scripts/proposals/upgrade_communities.sh +++ b/scripts/proposals/upgrade_communities.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_cycles_dispenser.sh b/scripts/proposals/upgrade_cycles_dispenser.sh index 2e27428d74..0da5afa23a 100755 --- a/scripts/proposals/upgrade_cycles_dispenser.sh +++ b/scripts/proposals/upgrade_cycles_dispenser.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_group_index.sh b/scripts/proposals/upgrade_group_index.sh index aedb005463..17f416244d 100755 --- a/scripts/proposals/upgrade_group_index.sh +++ b/scripts/proposals/upgrade_group_index.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_groups.sh b/scripts/proposals/upgrade_groups.sh index 92ea4e2e48..6a883f2137 100755 --- a/scripts/proposals/upgrade_groups.sh +++ b/scripts/proposals/upgrade_groups.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_local_group_indexes.sh b/scripts/proposals/upgrade_local_group_indexes.sh index 48eef55a0a..0b5825062b 100755 --- a/scripts/proposals/upgrade_local_group_indexes.sh +++ b/scripts/proposals/upgrade_local_group_indexes.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_local_user_indexes.sh b/scripts/proposals/upgrade_local_user_indexes.sh index 2447cf921f..5c29df0f86 100755 --- a/scripts/proposals/upgrade_local_user_indexes.sh +++ b/scripts/proposals/upgrade_local_user_indexes.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_market_maker.sh b/scripts/proposals/upgrade_market_maker.sh index bdb941a1fd..9b0034ba12 100755 --- a/scripts/proposals/upgrade_market_maker.sh +++ b/scripts/proposals/upgrade_market_maker.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_neuron_controller.sh b/scripts/proposals/upgrade_neuron_controller.sh index 324d100bdd..3590e501bb 100755 --- a/scripts/proposals/upgrade_neuron_controller.sh +++ b/scripts/proposals/upgrade_neuron_controller.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_notifications.sh b/scripts/proposals/upgrade_notifications.sh index 454216a791..b17178c888 100755 --- a/scripts/proposals/upgrade_notifications.sh +++ b/scripts/proposals/upgrade_notifications.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_notifications_index.sh b/scripts/proposals/upgrade_notifications_index.sh index a5e65118e1..eaf0f9acc7 100755 --- a/scripts/proposals/upgrade_notifications_index.sh +++ b/scripts/proposals/upgrade_notifications_index.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_online_users.sh b/scripts/proposals/upgrade_online_users.sh index 6033647000..0c0426f22c 100755 --- a/scripts/proposals/upgrade_online_users.sh +++ b/scripts/proposals/upgrade_online_users.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_proposal_validation.sh b/scripts/proposals/upgrade_proposal_validation.sh index c2b0b64094..be1ececb4c 100755 --- a/scripts/proposals/upgrade_proposal_validation.sh +++ b/scripts/proposals/upgrade_proposal_validation.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_proposals_bot.sh b/scripts/proposals/upgrade_proposals_bot.sh index 6e3c9653a8..745aefcc0b 100755 --- a/scripts/proposals/upgrade_proposals_bot.sh +++ b/scripts/proposals/upgrade_proposals_bot.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_registry.sh b/scripts/proposals/upgrade_registry.sh index ce70264b24..527eba8131 100755 --- a/scripts/proposals/upgrade_registry.sh +++ b/scripts/proposals/upgrade_registry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_sns_canisters_to_next_version.sh b/scripts/proposals/upgrade_sns_canisters_to_next_version.sh index 4af3f9e141..2c589d6eec 100755 --- a/scripts/proposals/upgrade_sns_canisters_to_next_version.sh +++ b/scripts/proposals/upgrade_sns_canisters_to_next_version.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Extract the args or use defaults TITLE=$1 diff --git a/scripts/proposals/upgrade_storage_buckets.sh b/scripts/proposals/upgrade_storage_buckets.sh index 7872c81d8d..0db1837a6b 100755 --- a/scripts/proposals/upgrade_storage_buckets.sh +++ b/scripts/proposals/upgrade_storage_buckets.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_storage_index.sh b/scripts/proposals/upgrade_storage_index.sh index d01abe4b31..f1500fd8f4 100755 --- a/scripts/proposals/upgrade_storage_index.sh +++ b/scripts/proposals/upgrade_storage_index.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_user_index.sh b/scripts/proposals/upgrade_user_index.sh index b4ac75817a..383ef839c9 100755 --- a/scripts/proposals/upgrade_user_index.sh +++ b/scripts/proposals/upgrade_user_index.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_users.sh b/scripts/proposals/upgrade_users.sh index 1bd649bc9d..f2567889e7 100755 --- a/scripts/proposals/upgrade_users.sh +++ b/scripts/proposals/upgrade_users.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash VERSION=$1 SUMMARY_PATH=$2 diff --git a/scripts/proposals/upgrade_website_motion.sh b/scripts/proposals/upgrade_website_motion.sh index e6cb1e7710..0d011b446a 100755 --- a/scripts/proposals/upgrade_website_motion.sh +++ b/scripts/proposals/upgrade_website_motion.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cd into the folder containing this script SCRIPT=$(readlink -f "$0") diff --git a/scripts/upgrade-canister-local.sh b/scripts/upgrade-canister-local.sh index 94bd840d4e..56b6897a12 100755 --- a/scripts/upgrade-canister-local.sh +++ b/scripts/upgrade-canister-local.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in the dfx identity name # eg './upgrade-canister-local.sh openchat user_index 1.0.0' diff --git a/scripts/upgrade-canister-prod-test.sh b/scripts/upgrade-canister-prod-test.sh index 99b56cda81..bfbe8e927a 100755 --- a/scripts/upgrade-canister-prod-test.sh +++ b/scripts/upgrade-canister-prod-test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in the dfx identity name # eg './upgrade-canister-prod-test.sh openchat user_index 1.0.0' diff --git a/scripts/upgrade-canister-prod.sh b/scripts/upgrade-canister-prod.sh index 94e184288c..836cdea0e0 100755 --- a/scripts/upgrade-canister-prod.sh +++ b/scripts/upgrade-canister-prod.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in the dfx identity name # eg './upgrade-canister-prod.sh openchat user_index 1.0.0' diff --git a/scripts/upgrade-canister.sh b/scripts/upgrade-canister.sh index 15017eb6bb..8f39caf7d6 100755 --- a/scripts/upgrade-canister.sh +++ b/scripts/upgrade-canister.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Pass in network name, IC url, identity name, canister name, and version # eg './upgrade-canister.sh local http://127.0.0.1:8080/ openchat user_index 1.0.0' @@ -50,4 +50,4 @@ cargo run \ --neuron-controller $NEURON_CONTROLLER_CANISTER_ID \ --escrow $ESCROW_CANISTER_ID \ --canister-to-upgrade $CANISTER_NAME \ - --version $VERSION \ \ No newline at end of file + --version $VERSION \ diff --git a/scripts/validate-candid-matches-rust.sh b/scripts/validate-candid-matches-rust.sh index 7c3a9d1f67..3b03b38256 100755 --- a/scripts/validate-candid-matches-rust.sh +++ b/scripts/validate-candid-matches-rust.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash SCRIPT=$(readlink -f "$0") SCRIPT_DIR=$(dirname "$SCRIPT") diff --git a/scripts/validate-candid-syntax.sh b/scripts/validate-candid-syntax.sh index a930c9cd44..4889831b89 100755 --- a/scripts/validate-candid-syntax.sh +++ b/scripts/validate-candid-syntax.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash SCRIPT=$(readlink -f "$0") SCRIPT_DIR=$(dirname "$SCRIPT") diff --git a/sns/config/sns_proposal.sh b/sns/config/sns_proposal.sh index a52b5ca49a..b9922c9fc4 100755 --- a/sns/config/sns_proposal.sh +++ b/sns/config/sns_proposal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") @@ -75,4 +75,4 @@ ic-admin --nns-url $NNS_URL \ --sale-delay-seconds 86400 \ --proposal-title "$PROPOSAL_TITLE" \ --proposal-url "$PROPOSAL_URL" \ - --summary "$SUMMARY" \ No newline at end of file + --summary "$SUMMARY" diff --git a/sns/scripts/add-sns-root-as-canister-controller.sh b/sns/scripts/add-sns-root-as-canister-controller.sh index 64f5a647fd..383bddae96 100755 --- a/sns/scripts/add-sns-root-as-canister-controller.sh +++ b/sns/scripts/add-sns-root-as-canister-controller.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/add_canisters_governance_principal.sh b/sns/scripts/add_canisters_governance_principal.sh index 748a929f95..b3f1b0187e 100755 --- a/sns/scripts/add_canisters_governance_principal.sh +++ b/sns/scripts/add_canisters_governance_principal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set env variables based on .env file set -o allexport; source .env; set +o allexport diff --git a/sns/scripts/create_custom_sns_functions.sh b/sns/scripts/create_custom_sns_functions.sh index 2a4becc6cc..63b2378863 100755 --- a/sns/scripts/create_custom_sns_functions.sh +++ b/sns/scripts/create_custom_sns_functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/follow_personal_beacon.sh b/sns/scripts/follow_personal_beacon.sh index 952f804f6c..6d4c7a3920 100755 --- a/sns/scripts/follow_personal_beacon.sh +++ b/sns/scripts/follow_personal_beacon.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash NETWORK=$1 IDENTITY="oc-matt" diff --git a/sns/scripts/proposals/create_custom_sns_function.sh b/sns/scripts/proposals/create_custom_sns_function.sh index b97f78832d..50040d9719 100755 --- a/sns/scripts/proposals/create_custom_sns_function.sh +++ b/sns/scripts/proposals/create_custom_sns_function.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/proposals/register_canister_with_sns.sh b/sns/scripts/proposals/register_canister_with_sns.sh index ee7fcc7132..0d82cf37ae 100755 --- a/sns/scripts/proposals/register_canister_with_sns.sh +++ b/sns/scripts/proposals/register_canister_with_sns.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/register_canisters_with_sns.sh b/sns/scripts/register_canisters_with_sns.sh index e78926883b..0c89b5c6d2 100755 --- a/sns/scripts/register_canisters_with_sns.sh +++ b/sns/scripts/register_canisters_with_sns.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/remove_direct_dev_access.sh b/sns/scripts/remove_direct_dev_access.sh index 1772ca9a8c..b510a8a0b3 100755 --- a/sns/scripts/remove_direct_dev_access.sh +++ b/sns/scripts/remove_direct_dev_access.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set env variables based on .env file set -o allexport; source .env; set +o allexport diff --git a/sns/scripts/utils/cleanup_env.sh b/sns/scripts/utils/cleanup_env.sh index e119b3f9be..9dadb8e901 100755 --- a/sns/scripts/utils/cleanup_env.sh +++ b/sns/scripts/utils/cleanup_env.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/utils/setup_env.sh b/sns/scripts/utils/setup_env.sh index c195d9018d..7d9112fa32 100755 --- a/sns/scripts/utils/setup_env.sh +++ b/sns/scripts/utils/setup_env.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Check the necessary environment variables have been set if [ -z "${NETWORK}" ] @@ -41,4 +41,4 @@ SCRIPT_DIR=$(dirname "$SCRIPT") cd $SCRIPT_DIR # Create the sns_canister_ids.json -./build_sns_canister_ids_json.sh > sns_canister_ids.json \ No newline at end of file +./build_sns_canister_ids_json.sh > sns_canister_ids.json diff --git a/sns/scripts/utils/submit_proposal.sh b/sns/scripts/utils/submit_proposal.sh index 86cd9aff3f..17f9a03b01 100755 --- a/sns/scripts/utils/submit_proposal.sh +++ b/sns/scripts/utils/submit_proposal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/utils/submit_proposal_file.sh b/sns/scripts/utils/submit_proposal_file.sh index 7502e76d14..dff63d9d42 100755 --- a/sns/scripts/utils/submit_proposal_file.sh +++ b/sns/scripts/utils/submit_proposal_file.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0") diff --git a/sns/scripts/utils/submit_upgrade_proposal.sh b/sns/scripts/utils/submit_upgrade_proposal.sh index 25c8fb28a4..11ea92c56f 100755 --- a/sns/scripts/utils/submit_upgrade_proposal.sh +++ b/sns/scripts/utils/submit_upgrade_proposal.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Set current directory to the directory this script is in SCRIPT=$(readlink -f "$0")