check wip and install deb stuff
This commit is contained in:
parent
9db8bfb29d
commit
caef41c8ae
|
@ -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
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue