Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
fix: reference correct script
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss committed Oct 4, 2021
1 parent 3e8abc8 commit 07c5c03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "awsp-plus",
"description": "Easily switch between and manage AWS CLI profiles",
"version": "1.0.0",
"version": "1.0.1",
"author": "Abyss (https://abyss.dev)",
"license": "ISC",
"homepage": "https://github.com/abyss/awsp-plus",
"keywords": ["aws", "profile", "awsp"],
"keywords": [
"aws",
"profile",
"awsp"
],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -19,8 +23,8 @@
"url": "https://github.com/abyss/awsp-plus/issues"
},
"bin": {
"_awspp_prompt": "./index.js",
"_awspp": "./run.sh"
"_awspp_prompt": "index.js",
"_awspp": "run.sh"
},
"dependencies": {
"inquirer": "^8.1.5",
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ $# -eq 0 ]; then
AWS_PROFILE="$AWS_PROFILE" _awsp_prompt
AWS_PROFILE="$AWS_PROFILE" _awspp_prompt
selected_profile="$(cat $HOME/.awsp)"
else
selected_profile="$@"
Expand Down

0 comments on commit 07c5c03

Please sign in to comment.