File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ tee -a /etc/shells 1>/dev/null <<<"$(which git-shell)"
60
60
61
61
``` Bash
62
62
adduser\
63
- --force-badname\
64
63
--system\
65
64
--disabled-password\
66
65
--gecos ' ' \
Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ usage(){
34
34
# Name of repository to run
35
35
# bundle exec jekyll build --destination "${_srv_path// ${HOME} / ~} "
36
36
#
37
+ # -s --submodules
38
+ # Runs: git submodule update --init --recursive --merge
39
+ #
37
40
# -l --license
38
- # Shows script or project license then exits
41
+ # Shows script or project license then exits
39
42
#
40
43
# -h --help help
41
44
# Displays this message and exits
47
50
48
51
_args=(" ${@:?# No arguments provided try: ${__NAME__} help} " )
49
52
_valid_args=(' --help|-h|help:bool'
53
+ ' --submodules|-s|submodules:bool'
50
54
' --license|-l|license:bool'
51
55
' --repo-name:posix-nil' )
52
56
argument_parser ' _args' ' _valid_args'
@@ -96,10 +100,15 @@ done < <(ls -1 "${_git_path}"/_config*.y*ml)
96
100
97
101
[[ -d " ${_www} " ]] || mkdir -vp " ${_www} "
98
102
103
+
99
104
_pwd=" ${PWD} "
100
105
cd " ${_git_path} "
101
- source " ${HOME} /.bash_aliases"
106
+ if (( _submodules)) ; then
107
+ git submodule update --init --recursive --merge
108
+ fi
109
+
102
110
111
+ source " ${HOME} /.bash_aliases"
103
112
# # Use API keys if configured for repo and available to user during build process
104
113
if grep -q -- ' jekyll-github-metadata' " ${_git_path} /Gemfile" && [ -f " ${_github_api_token_path} " ]; then
105
114
printf ' # JEKYLL_GITHUB_TOKEN="$(<github-api-token-path)" bundle exec jekyll build --destination %s --config %s\n' " ${_srv_path} " " ${_config_files} "
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ cat >> "${_git_path}/.gitignore" <<EOF
213
213
Bundler
214
214
vendor
215
215
.bundle
216
- Gemfile.lock
216
+ node_modules
217
217
EOF
218
218
219
219
git_add_commit ' Added files from Bundler & Jekyll to git tracking'
You can’t perform that action at this time.
0 commit comments