aboutsummaryrefslogtreecommitdiffstats
path: root/moon_manager/moonrc
blob: a3feb2ce9dc9cf6abcc6bb5b4603367416058719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

if [[ "$#" -ne 2 ]]; then
  echo "Usage : source moonrc <username> <password>"
else

    if [[ -n "$1" ]]; then
      MOON_USERNAME="$1"
    fi

    if [[ -n "$2" ]]; then
      MOON_PASSWORD="$2"
    fi

    export MOON_USERNAME=$MOON_USERNAME
    export MOON_PASSWORD=$MOON_PASSWORD

fi