aboutsummaryrefslogtreecommitdiff
path: root/share/templater/mit/setup
blob: a80cf0b12be38ae230ee4a80455183167adb2f61 (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
#
# MIT LICENSE templater module.
#

# Parameters
SHARE="$1"

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

# MIT License
function templater_mit {
  if [ ! -e "LICENSE" ]; then
    templater_echo "Setting up MIT License..."
    cp $SHARE/mit/files/LICENSE .
  else
    templater_echo "LICENSE already set"
  fi
}

# Dispatch
templater_mit