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)"
6060
6161``` Bash
6262adduser\
63- --force-badname\
6463 --system\
6564 --disabled-password\
6665 --gecos ' ' \
Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ usage(){
3434# Name of repository to run
3535# bundle exec jekyll build --destination "${_srv_path// ${HOME} / ~} "
3636#
37+ # -s --submodules
38+ # Runs: git submodule update --init --recursive --merge
39+ #
3740# -l --license
38- # Shows script or project license then exits
41+ # Shows script or project license then exits
3942#
4043# -h --help help
4144# Displays this message and exits
4750
4851_args=(" ${@:?# No arguments provided try: ${__NAME__} help} " )
4952_valid_args=(' --help|-h|help:bool'
53+ ' --submodules|-s|submodules:bool'
5054 ' --license|-l|license:bool'
5155 ' --repo-name:posix-nil' )
5256argument_parser ' _args' ' _valid_args'
@@ -96,10 +100,15 @@ done < <(ls -1 "${_git_path}"/_config*.y*ml)
96100
97101[[ -d " ${_www} " ]] || mkdir -vp " ${_www} "
98102
103+
99104_pwd=" ${PWD} "
100105cd " ${_git_path} "
101- source " ${HOME} /.bash_aliases"
106+ if (( _submodules)) ; then
107+ git submodule update --init --recursive --merge
108+ fi
109+
102110
111+ source " ${HOME} /.bash_aliases"
103112# # Use API keys if configured for repo and available to user during build process
104113if grep -q -- ' jekyll-github-metadata' " ${_git_path} /Gemfile" && [ -f " ${_github_api_token_path} " ]; then
105114 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
213213Bundler
214214vendor
215215.bundle
216- Gemfile.lock
216+ node_modules
217217EOF
218218
219219git_add_commit ' Added files from Bundler & Jekyll to git tracking'
You can’t perform that action at this time.
0 commit comments