aboutsummaryrefslogtreecommitdiffstats
path: root/moon_manager/moonrc
diff options
context:
space:
mode:
Diffstat (limited to 'moon_manager/moonrc')
-rw-r--r--moon_manager/moonrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/moon_manager/moonrc b/moon_manager/moonrc
new file mode 100644
index 00000000..a3feb2ce
--- /dev/null
+++ b/moon_manager/moonrc
@@ -0,0 +1,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 \ No newline at end of file