From 18f3abac754d05707b2ecb70c6a92332b4039706 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 9 Feb 2022 03:40:58 +0530 Subject: [PATCH] Fix UUOC shellcheck warning --- src/scripts/tools/add_tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tools/add_tools.sh b/src/scripts/tools/add_tools.sh index e0900541..8f34d6dc 100644 --- a/src/scripts/tools/add_tools.sh +++ b/src/scripts/tools/add_tools.sh @@ -155,7 +155,7 @@ add_composertool() { release=$2 prefix=$3 scope=$4 - composer_major_version=$(cat /tmp/composer_version | cut -d'.' -f 1) + composer_major_version=$(cut -d'.' -f 1 /tmp/composer_version) if [ "$composer_major_version" != "1" ]; then composer_args="--ignore-platform-req=ext-*" if [[ "$tool" =~ prestissimo|composer-prefetcher ]]; then