From 01059849f8f2bb5d05954370245c224acd0b8409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20=C5=81ukawski?= Date: Fri, 3 Jun 2022 17:41:16 +0200 Subject: [PATCH] Drop path to `cut` command Command not found on GHA Ubuntu 18.04 runners. --- pre_cache_action.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pre_cache_action.sh b/pre_cache_action.sh index c4f764b..ba09879 100755 --- a/pre_cache_action.sh +++ b/pre_cache_action.sh @@ -15,12 +15,12 @@ mkdir -p $cache_dir echo -n "Validating action arguments (version='$version', packages='$packages')..."; echo $version | grep -o " " > /dev/null if [ $? -eq 0 ]; then - echo "aborted." + echo "aborted." echo "Version value '$version' cannot contain spaces." >&2 exit 1 fi if [ "$packages" == "" ]; then - echo "aborted." + echo "aborted." echo "Packages argument cannot be empty." >&2 exit 2 fi @@ -50,7 +50,7 @@ echo "- Normalized package list is '$normalized_list'." value=$(echo $normalized_list @ $version) echo "- Value to hash is '$value'." -key=$(echo $value | md5sum | /bin/cut -f1 -d' ') +key=$(echo $value | md5sum | cut -f1 -d' ') echo "- Value hashed as '$key'." echo "done."