From 3e4eb48b775ceeda646d98962ccea120821e1fab Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 11 Jun 2021 11:32:53 -0400 Subject: [PATCH] Fix shell script (shellcheck) --- .../ee/agent-smith/scripts/prepare-bpf-dev-environment.sh | 6 +++--- components/ee/agent-smith/scripts/scp.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ee/agent-smith/scripts/prepare-bpf-dev-environment.sh b/components/ee/agent-smith/scripts/prepare-bpf-dev-environment.sh index 1628a68d859661..21c1bce7e18945 100755 --- a/components/ee/agent-smith/scripts/prepare-bpf-dev-environment.sh +++ b/components/ee/agent-smith/scripts/prepare-bpf-dev-environment.sh @@ -9,14 +9,14 @@ img_url="https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-a script_dirname="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" outdir="${script_dirname}/_output" -rm -Rf $outdir -mkdir -p $outdir +rm -Rf "$outdir" +mkdir -p "$outdir" curl -L -o "${outdir}/linux-image.deb" $vmlinux_url curl -L -o "${outdir}/linux-modules.deb" $modules_url curl -L -o "${outdir}/rootfs.tar.gz" $img_url -cd $outdir +cd "$outdir" tar -xvf rootfs.tar.gz diff --git a/components/ee/agent-smith/scripts/scp.sh b/components/ee/agent-smith/scripts/scp.sh index 6288e1b3de19e5..afde4d9c658434 100755 --- a/components/ee/agent-smith/scripts/scp.sh +++ b/components/ee/agent-smith/scripts/scp.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -sshpass -p 'root' scp -o StrictHostKeychecking=no -P 2222 $@ +sshpass -p 'root' scp -o StrictHostKeychecking=no -P 2222 "$@"