unity-builder/dist/remote-builder/combineLFSHash.sh

13 lines
324 B
Bash
Raw Normal View History

#!/bin/sh
echo "Combining LFS hash files into one hash, this can be used to cache LFS files"
2021-07-12 22:53:22 +00:00
git lfs ls-files -l
git lfs ls-files -l | cut -d' ' -f1
git lfs ls-files -l | cut -d' ' -f1 | sort
git lfs ls-files -l | cut -d' ' -f1 | sort > $1/.lfs-assets-id
2021-07-12 22:36:40 +00:00
echo ' '
ls $1
echo 'combined file:'
2021-07-12 22:53:22 +00:00
cat $1/.lfs-assets-id
2021-07-12 22:36:40 +00:00
echo ' '