Skip to content

Commit

Permalink
other way to cleanup name
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Apr 5, 2024
1 parent 5a3a9c0 commit 145792d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ jobs:
for screenshot in $(find . -type f -maxdepth 1 -name "*.png");
do
name=${screenshot:2}
name_as_array=(${name//-/ })
echo ${name_as_array[1]}
name=`echo $name | sed 's/.*-\(.*\)-.*/\1/'`
echo $name
hash=`shasum -a 256 $screenshot | awk '{print $1}'`
hashes="$hashes [\"${name_as_array[1]}\",\"$hash\"],"
hashes="$hashes [\"$name\",\"$hash\"],"
done
hashes=`echo $hashes | rev | cut -c 2- | rev`
hashes="$hashes]"
Expand Down

0 comments on commit 145792d

Please sign in to comment.