diff --git a/check_wip.sh b/check_wip.sh new file mode 100755 index 0000000..33e045c --- /dev/null +++ b/check_wip.sh @@ -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 diff --git a/install_it_all.sh b/install_it_all.sh index 3c6d8cf..dfcfadd 100644 --- a/install_it_all.sh +++ b/install_it_all.sh @@ -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 \