Skip to content

Commit

Permalink
Merge pull request #17 from PeterBowman/fix-cmd-path
Browse files Browse the repository at this point in the history
Drop path to `cut` command
  • Loading branch information
awalsh128 authored Jun 4, 2022
2 parents c8f8c81 + 0105984 commit d7e83f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pre_cache_action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit d7e83f6

Please sign in to comment.