aboutsummaryrefslogtreecommitdiff
path: root/projects/cros-ec
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-10-26 02:32:54 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-10-28 23:30:01 -0400
commit85934d62d767a484fa560066b6edb69a18145690 (patch)
tree8136b2cdfe3bee1b8ed854d519811e953ca0e4a7 /projects/cros-ec
parentc3f80f40f9e9b7bc3a57c3ed774dfdc1f46a8196 (diff)
downloadlibrebootfr-85934d62d767a484fa560066b6edb69a18145690.tar.gz
librebootfr-85934d62d767a484fa560066b6edb69a18145690.zip
Replace usage of the '[' Bash builtin with '[['
There's no benefit to using the POSIX-style '[' test builtin considering its '-a' and '-o' operators are unused in the Libreboot build system. Plus, '[[' is safer with respect to any containing file redirections (for example). Prior, both '[' and '[[' were used throughout the codebase--a disparity in usage which this change aims to eliminate.
Diffstat (limited to 'projects/cros-ec')
-rwxr-xr-xprojects/cros-ec/cros-ec6
1 files changed, 3 insertions, 3 deletions
diff --git a/projects/cros-ec/cros-ec b/projects/cros-ec/cros-ec
index 8fb75003..be7aa62b 100755
--- a/projects/cros-ec/cros-ec
+++ b/projects/cros-ec/cros-ec
@@ -73,7 +73,7 @@ build() {
mkdir -p "$build_path"
- if [ "$target" = "tools" ]
+ if [[ "$target" = "tools" ]]
then
make -C "$sources_path" out="$build_path" HOST_CROSS_COMPILE= -j$TASKS "utils"
else
@@ -104,7 +104,7 @@ release() {
local repository=$project
- if [ "$target" = "tools" ]
+ if [[ "$target" = "tools" ]]
then
project_release_install_archive "$project" "$TOOLS" "$@"
else
@@ -119,7 +119,7 @@ release_check() {
local repository=$project
- if [ "$target" = "tools" ]
+ if [[ "$target" = "tools" ]]
then
project_release_install_archive_check "$project" "$TOOLS" "$@"
else