aboutsummaryrefslogtreecommitdiff
path: root/share/templater/conduct/setup
blob: f2c1873e82aacd54a5c4203a1e76ff7032ddab59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Code of Conduct templater module.
#

# Parameters
SHARE="$1"

# Include basic functions
source $SHARE/templater/functions || exit 1

# Contributor Covenant: A Code of Conduct for Open Source Projects
function templater_conduct {
  if [ ! -e "CODE_OF_CONDUCT.md" ]; then
    __templater_echo "Setting up Code of Conduct..."
    cp $SHARE/conduct/files/CODE_OF_CONDUCT.md .
  else
    __templater_echo "Code of Conduct already set"
  fi
}

# Dispatch
templater_conduct