Skip to content

Commit 04ca584

Browse files
author
Bob Strahan
committed
fix: Command stderr: ./publish.sh: 23: Syntax error: '(' unexpected
1 parent 177770d commit 04ca584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/sdlc/idp-cli/src/idp_cli/service/install_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def check_docker_availability(self):
8787

8888
def publish(self):
8989
# Add logic to run this command:
90-
# sh ./publish.sh <cfn_bucket_basename> <cfn_prefix> <region e.g. us-east-1>
90+
# bash ./publish.sh <cfn_bucket_basename> <cfn_prefix> <region e.g. us-east-1>
9191

9292
# Check Docker availability
9393
docker_available = self.check_docker_availability()
@@ -101,13 +101,13 @@ def publish(self):
101101
working_dir = self.cwd if self.cwd else os.getcwd()
102102
abs_working_dir = os.path.abspath(working_dir)
103103
logger.debug(f"Publishing from directory: {abs_working_dir}")
104-
logger.debug(f"Running publish command: sh ./publish.sh {self.cfn_bucket_basename} {self.cfn_prefix} {self.region}")
104+
logger.debug(f"Running publish command: bash ./publish.sh {self.cfn_bucket_basename} {self.cfn_prefix} {self.region}")
105105

106106
# Set up environment variables for the subprocess
107107
env_vars = os.environ.copy()
108108

109109
process = subprocess.run(
110-
['sh','./publish.sh', self.cfn_bucket_basename, self.cfn_prefix, self.region],
110+
['bash','./publish.sh', self.cfn_bucket_basename, self.cfn_prefix, self.region],
111111
check=True,
112112
text=True,
113113
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)