use --short flag on git rev-parse

This commit is contained in:
2023-02-06 14:42:37 +00:00
parent df8febd3cf
commit a91f5dcdfc
2 changed files with 4 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
install:
cp n2w_add_uuid.py /usr/local/bin
sed "s/N2W_COMMIT = \"\"/N2W_COMMIT = \"$$(git rev-parse HEAD)\"/" notes2web.py > /usr/local/bin/notes2web.py
sed "s/N2W_COMMIT = \"\"/N2W_COMMIT = \"$$(git rev-parse --short HEAD)\"/" notes2web.py > /usr/local/bin/notes2web.py
pip3 install -r requirements.txt
mkdir -p /opt/notes2web
cp -r templates /opt/notes2web