improved git commit fetching
This commit is contained in:
10
build.sh
10
build.sh
@@ -10,12 +10,4 @@ mkdir tmp tmp/pkg
|
||||
cp -r pkg/integral_site_bg.wasm pkg/integral_site.js tmp/pkg/
|
||||
cp www/index.html www/style.css tmp/
|
||||
|
||||
sed -i 's/\.\.\/pkg/\.\/pkg/g' tmp/index.html
|
||||
|
||||
git ls-files --exclude-standard --others . >/dev/null 2>&1; ec=$?
|
||||
if test "$ec" = 0; then
|
||||
echo some untracked files
|
||||
elif test "$ec" = 1; then
|
||||
commit=$(git rev-parse HEAD)
|
||||
sed -i "s/let commit = ''/let commit = '${commit}'/g" tmp/index.html
|
||||
fi
|
||||
sed -i 's/\.\.\/pkg/\.\/pkg/g' tmp/index.html
|
||||
Reference in New Issue
Block a user