diff --git a/modules/message.sh b/modules/message.sh index 2779c52a1..ec16c20a4 100644 --- a/modules/message.sh +++ b/modules/message.sh @@ -11,7 +11,7 @@ function message { } function get_apitoken { channelname=$1 - access_token=$(config | grep "$channelname" | cut -d "=" -f2) + access_token=$(config | grep "$channelname" | grep "token" | cut -d "=" -f2) echo "Your API access token is $access_token" return 0 } @@ -220,7 +220,7 @@ function message { if [[ $3 != "" ]]; then tempVar=$(echo $3 | cut -d "-" -f 1) if [[ $tempVar == "xoxp" ]]; then - conf_var_update "slacktoken" "$3" + conf_var_update "slack_apitoken" "$3" echo "your apitoken is $3" else log_comment_and_exit1 "invalid token" diff --git a/package.json b/package.json index 409bbda49..62b52cd4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@treehouses/cli", - "version": "1.24.80", + "version": "1.24.81", "remote": "4000", "description": "Thin command-line interface for Raspberry Pi low level configuration.", "main": "cli.sh",