Skip to content

Commit

Permalink
fix(*): fixed shellchecks with severity=error
Browse files Browse the repository at this point in the history
  • Loading branch information
Moep90 committed Mar 18, 2024
1 parent ce145d0 commit cc0e857
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions baselines/fedstar/setup_datasets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ tar -xvf data_splits.tar

# Create datasets directory and navigate into it
mkdir datasets
cd datasets
cd datasets || exit

# Create speech_commands directory and navigate into it
mkdir speech_commands
cd speech_commands
cd speech_commands || exit

# Download and extract the training data
wget http://download.tensorflow.org/data/speech_commands_v0.02.tar.gz -O train.tar.gz
Expand All @@ -27,7 +27,7 @@ mv ./Data/Train/_background_noise_ ./Data/Train/_silence_
cd ..
# Create speech_commands directory and navigate into it
mkdir ambient_context
cd ambient_context
cd ambient_context || exit

wget http://sensix.tech/datasets/ambientacousticcontext/audioset_1sec_v1.tar.gz -O ambient_data.tar.gz
mkdir -p ./Data
Expand Down
2 changes: 1 addition & 1 deletion doc/build-versioned-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ END
if [ "$current_version" = "v1.5.0" ]; then
git restore source/conf.py
fi
if [ changed ]; then
if [ $changed ]; then
git restore locales/${current_language} || rm -rf locales/${current_language}
fi

Expand Down
2 changes: 0 additions & 2 deletions e2e/bare-https/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -e
# Change directory to the script's directory
cd "$(dirname "${BASH_SOURCE[0]}")"

CA_PASSWORD=notsafe

CERT_DIR=certificates

# Generate directories if not exists
Expand Down
2 changes: 2 additions & 0 deletions examples/android/apk/download_apk.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#!/bin/bash

wget https://www.dropbox.com/s/ii0vwrjrpupifiv/flower-client.apk?dl=0
2 changes: 2 additions & 0 deletions examples/quickstart-pandas/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

echo "Starting server"
python server.py &
sleep 3 # Sleep for 3s to give the server enough time to start
Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr_example/pytorch_imagenet/run-clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -e

SERVER_ADDRESS="[::]:8080"
NUM_CLIENTS=40
IMAGENET_PATH="~/Downloads/imagenet-object-localization-challenge/"
IMAGENET_PATH="$HOME/Downloads/imagenet-object-localization-challenge/"

echo "Starting $NUM_CLIENTS clients."
for ((i = 0; i < $NUM_CLIENTS; i++))
Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr_example/pytorch_imagenet/run-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
# ==============================================================================

IMAGENET_PATH="~/Downloads/imagenet-object-localization-challenge/"
IMAGENET_PATH="$HOME/Downloads/imagenet-object-localization-challenge/"

# Start a Flower server
python -m flwr_example.pytorch_imagenet.server \
Expand Down

0 comments on commit cc0e857

Please sign in to comment.