Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double quote variables in shellscript #3917

Merged
merged 1 commit into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dep/helpers/build
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ ! -d "$install_dir/bin" ]; then
fi

helpers_dir="$(dirname "${BASH_SOURCE[0]}")"
cd $helpers_dir
cd "$helpers_dir"

os="$(uname -s | tr '[:upper:]' '[:lower:]')"
echo "building $install_dir/bin/helper"
Expand Down
2 changes: 1 addition & 1 deletion go_modules/helpers/build
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ ! -d "$install_dir/bin" ]; then
fi

helpers_dir="$(dirname "${BASH_SOURCE[0]}")"
cd $helpers_dir
cd "$helpers_dir"

os="$(uname -s | tr '[:upper:]' '[:lower:]')"
echo "building $install_dir/bin/helper"
Expand Down
8 changes: 4 additions & 4 deletions hex/helpers/build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ -z "$install_dir" ]; then
exit 1
fi

mkdir -p $install_dir
mkdir -p "$install_dir"

mix local.hex --force
mix archive.install hex nerves_bootstrap --force
Expand All @@ -20,9 +20,9 @@ case `uname` in
*) CP_OPTS='-r' ;;
esac

cp $CP_OPTS "$helpers_dir/lib" $install_dir
cp $CP_OPTS "$helpers_dir/mix.exs" $install_dir
cp $CP_OPTS "$helpers_dir/mix.lock" $install_dir
cp $CP_OPTS "$helpers_dir/lib" "$install_dir"
cp $CP_OPTS "$helpers_dir/mix.exs" "$install_dir"
cp $CP_OPTS "$helpers_dir/mix.lock" "$install_dir"

cd "$install_dir"
mix deps.get