From c6ba0a0e9b297606e89bd82655e48c40ac01becc Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 15 May 2024 04:02:48 +0100 Subject: option.sh: delete check_git() it's only used from main() in the main build script, and it's very small, as is main() therefore, move the logic into main() Signed-off-by: Leah Rowe --- include/option.sh | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include') diff --git a/include/option.sh b/include/option.sh index 986e0883..26867772 100755 --- a/include/option.sh +++ b/include/option.sh @@ -152,16 +152,6 @@ remkdir() mkdir -p "${1}" || $err "remkdir: !mkdir -p \"${1}\"" } -check_git() -{ - which git 1>/dev/null 2>/dev/null || \ - git_err "git not installed. please install git-scm." - git config --global user.name 1>/dev/null 2>/dev/null || \ - git_err "git config --global user.name \"John Doe\"" - git config --global user.email 1>/dev/null 2>/dev/null || \ - git_err "git config --global user.email \"john.doe@example.com\"" -} - git_err() { printf "You need to set git name/email, like so:\n%s\n\n" "$1" 1>&2 -- cgit v1.2.1