feat(devtools): return to original commit at the end of deb-package.sh

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
This commit is contained in:
Sandro-Alessio Gierens 2024-05-06 22:48:10 +02:00 committed by Christina Rust
parent 4f542eaf4b
commit 292cf7ece7

View File

@ -5,6 +5,8 @@ NAME="eza"
DESTDIR=/usr/bin
DOCDIR=/usr/share/man/
COMMIT=$(git rev-parse --abbrev-ref HEAD)
TAG=$(git describe --tags --abbrev=0)
VERSION=${TAG:1}
@ -142,3 +144,6 @@ EOM
echo " -> lint ${ARCH} package"
lintian "${DEB_PACKAGE}" || true
done
echo "return to original commit"
git checkout --quiet "${COMMIT}"