Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
s/local/declare/g
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vines authored and solana-grimes committed Jun 27, 2018
1 parent 5cd1fb4 commit faedb88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions multinode-demo/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@

if [[ -d "$SNAP" ]]; then # Running inside a Linux Snap?
solana_program() {
local program="$1"
declare program="$1"
printf "%s/command-%s.wrapper" "$SNAP" "$program"
}
SOLANA_CUDA="$(snapctl get enable-cuda)"

elif [[ -n "$USE_SNAP" ]]; then # Use the Linux Snap binaries
solana_program() {
local program="$1"
declare program="$1"
printf "solana.%s" "$program"
}
elif [[ -n "$USE_INSTALL" ]]; then # Assume |cargo install| was run
solana_program() {
local program="$1"
declare program="$1"
printf "solana-%s" "$program"
}
# CUDA was/wasn't selected at build time, can't affect CUDA state here
unset SOLANA_CUDA
else
solana_program() {
local program="$1"
local features=""
declare program="$1"
declare features=""
if [[ "$program" =~ ^(.*)-cuda$ ]]; then
program=${BASH_REMATCH[1]}
features="--features=cuda,erasure"
Expand All @@ -49,7 +49,7 @@ export RUST_BACKTRACE=1
SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config

rsync_url() { # adds the 'rsync://` prefix to URLs that need it
local url="$1"
declare url="$1"

if [[ "$url" =~ ^.*:.*$ ]]; then
# assume remote-shell transport when colon is present, use $url unmodified
Expand Down

0 comments on commit faedb88

Please sign in to comment.