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