diff options
author | 2020-06-03 10:06:52 +0200 | |
---|---|---|
committer | 2020-06-03 10:06:52 +0200 | |
commit | 7bb53c64da2dcf88894bfd31503accdd81498f3d (patch) | |
tree | 4310e12366818af27947b5e2c80cb162da93a4b5 /moon_manager/moonrc | |
parent | cbea4e360e9bfaa9698cf7c61c83c96a1ba89b8c (diff) |
Update to new version 5.4HEADstable/jermamaster
Signed-off-by: Thomas Duval <thomas.duval@orange.com>
Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea
Diffstat (limited to 'moon_manager/moonrc')
-rw-r--r-- | moon_manager/moonrc | 18 |
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 |