From fc7cb7169b30c1e7b3ae04d4f974033546c54913 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Fri, 22 Oct 2021 17:54:57 -0400 Subject: [PATCH] Fix installer --- script-install-manual-scripts | 2 ++ script-system-scheduled-restart | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/script-install-manual-scripts b/script-install-manual-scripts index fc62d7cb..85296236 100755 --- a/script-install-manual-scripts +++ b/script-install-manual-scripts @@ -9,6 +9,8 @@ parent=${parent%/*} is_root +git rev-parse --is-inside-git-dir || echo "You must execute this script from the hartmanlab git directory" && exit 1 + install -m 644 functions /usr/local/bin/ for script in script-*; do diff --git a/script-system-scheduled-restart b/script-system-scheduled-restart index 7d67f1a1..3c1ae968 100755 --- a/script-system-scheduled-restart +++ b/script-system-scheduled-restart @@ -12,7 +12,7 @@ is_root [[ $# -eq 0 ]] && time='*-*-* 01:30:00' # 1:30AM [[ $# -gt 1 ]] && time="$*" -./script-system-update +script-system-update ask_ok "Set a scheduled reboot for $time?" || exit 1