-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·34 lines (29 loc) · 770 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·34 lines (29 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
set -euo pipefail
DOTFILES="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=lib/install-core.sh
source "$DOTFILES/lib/install-core.sh"
GIT_NAME="${GIT_USER_NAME:-}"
GIT_EMAIL="${GIT_USER_EMAIL:-}"
INSTALL_ARGS=()
while [ $# -gt 0 ]; do
case "$1" in
--git-name)
[ $# -ge 2 ] || { echo "Falta valor para --git-name"; exit 1; }
GIT_NAME="$2"
shift 2
;;
--git-email)
[ $# -ge 2 ] || { echo "Falta valor para --git-email"; exit 1; }
GIT_EMAIL="$2"
shift 2
;;
*)
INSTALL_ARGS+=("$1")
shift
;;
esac
done
parse_install_args "$0" true "${INSTALL_ARGS[@]}"
prompt_git_identity
run_install generated "$GIT_NAME" "$GIT_EMAIL" "Git: $GIT_NAME <$GIT_EMAIL>"