Skip to content

Commit

Permalink
fix - unable to access config.json from non home
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaAjay committed May 23, 2023
1 parent 6269cf3 commit 58c934f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
- Minor bug fix

## [1.0.0] 2022-11-08
- Completed testing and ready for major release
- Completed testing and ready for major release

## [1.0.1] 2023-05-23
- Bug fix: Could not find config.json when the user was not in their home directory
3 changes: 2 additions & 1 deletion ckssocli/ck_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

def configure_utility():
# Retrieving the directory where .ck-sso-cli/ folder is present
directory = subprocess.run(['pwd'], capture_output=True)
cmd = 'echo $HOME'
directory = subprocess.run(cmd, shell=True, capture_output=True)
directory = directory.stdout.decode('utf-8')
directory = directory.split('\n')
directory = directory[0]
Expand Down
3 changes: 2 additions & 1 deletion ckssocli/ck_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import os

def login_utility():
directory = subprocess.run(['pwd'], capture_output=True)
cmd = 'echo $HOME'
directory = subprocess.run(cmd, shell=True, capture_output=True)
directory = directory.stdout.decode('utf-8')
directory = directory.split('\n')
directory = directory[0]
Expand Down
2 changes: 1 addition & 1 deletion ckssocli/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" version string """
__version__ = '1.0.0'
__version__ = '1.0.1'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
license='Apache License 2.0',
author='Aditya Ajay',
author_email='[email protected]',
url='https://github.com/okta-awscli/okta-awscli',
url='https://www.cloudkeeper.ai/',
entry_points={
'console_scripts': [
'ck-sso-cli=ckssocli.ck_sso_cli:main',
Expand Down

0 comments on commit 58c934f

Please sign in to comment.