From 70f2f2641ab1fdc09f4d6fd0bb012d7c2f0517d1 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 19 Mar 2023 15:12:25 +0100 Subject: [PATCH] remove nixos-commit check --- install.conf.yaml | 1 - shell/nixos-commited.sh | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100755 shell/nixos-commited.sh diff --git a/install.conf.yaml b/install.conf.yaml index 6855858..c955c9b 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -31,7 +31,6 @@ ~/.config/foot/foot.ini: foot/foot.ini ~/.gitconfig: git/gitconfig ~/.profile.d/load: shell/load - ~/.profile.d/09-nixos-commited.sh: shell/nixos-commited.sh ~/.profile.d/10-vars.sh: shell/vars.sh ~/.profile.d/10-paths.sh: shell/paths.sh ~/.profile.d/10-gitrepo-commited.sh: shell/gitrepo-commited.sh diff --git a/shell/nixos-commited.sh b/shell/nixos-commited.sh deleted file mode 100755 index d92f757..0000000 --- a/shell/nixos-commited.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -case "$-" in - *i*) - # This shell is interactive, if not ignore this part - # If printing this in non-interactive shells, it'll may prevent scp to work - if [ -z "${IN_NIX_SHELL}" ]; then - if [ -d "/etc/nixos" ]; then - changes=$(git -C /etc/nixos status --porcelain | wc -l) - if [ "$changes" -gt 0 ]; then - printf '\e[01;31m\n' >&2 - printf '######################################\n' >&2 - printf '# NixOS-config-Repo is not commited! #\n' >&2 - printf '######################################\n' >&2 - printf '\e[0m\n' >&2 - fi - fi - fi - ;; -esac