Bash scripts; use double brackets, fix bare variables, add quotes

These scripts explicitly use Bash, so we should be able to use
`[[` instead of `[` (which seems to be recommended).

Also added curly brackets to some bare variables, and quoted some paths.

This makes my IDE a bit more silent :-)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2018-12-22 20:18:33 +01:00
parent d147fe0582
commit 297b30df5f
43 changed files with 143 additions and 144 deletions

View File

@@ -25,6 +25,6 @@ install_runc() {
target="$1"
fi
make BUILDTAGS="$RUNC_BUILDTAGS" "$target"
mkdir -p ${PREFIX}
cp runc ${PREFIX}/runc
mkdir -p "${PREFIX}"
cp runc "${PREFIX}/runc"
}