check wip and install deb stuff

This commit is contained in:
Christoph J. Scherr 2025-01-30 10:30:40 +01:00
parent 9db8bfb29d
commit caef41c8ae
Signed by: PlexSheep
GPG Key ID: 9EB784BB202BB7BB
2 changed files with 20 additions and 1 deletions

17
check_wip.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# check for WIP commits
wips=$(git log --oneline --no-decorate | grep -i wip )
wips_n=$(echo "$wips" | wc -l)
LOCKFILE="$PWD/.git/.githook.allow_wip"
# This checks if neither lockfile exists AND wips is non-empty
if [[ ! -f $LOCKFILE && -n "$wips" ]]; then
# Allows us to read user input below, assigns stdin to keyboard
exec < /dev/tty
echo "contains $wips_n WIP commit(s)"
read -p "Really push? (Y/N) " -n 1 -r
case "$REPLY" in
y|Y ) echo -e "\ncontinuing..."; touch $LOCKFILE;;
* ) echo -e "\naborting."; exit 1;;
esac
fi

View File

@ -19,7 +19,9 @@ sudo apt-get install \
zam-plugins ibus-anthy python3-venv debian-keyring steam-devices \
plymouth plymouth-themes polari how-can-i-help nmap \
eza rust-all debcargo devscripts mmdebstrap sbuild uidmap dh-cargo \
autopkgtest quilt rust-src reprepro aptitude gawk
autopkgtest quilt rust-src reprepro aptitude gawk moreutils \
git-buildpackage python3-pip python3-venv python3-virtualenv \
gpaste-2 gnome-shell-extension-gpaste
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install \
md.obsidian.Obsidian \