Skip to content

Commit

Permalink
fix: pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlinc committed Nov 18, 2024
1 parent fe72310 commit 0224ce0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,9 @@ def execute(self, build_plan, zip_stream, query):
log.debug("WORKDIR: %s", sh_work_dir)
if source_path:
if not os.path.isabs(source_path):
source_path = os.path.join(sh_work_dir, source_path)
source_path = os.path.normpath(
os.path.join(sh_work_dir, source_path)
)
else:
source_path = sh_work_dir
if os.path.isdir(source_path):
Expand Down Expand Up @@ -959,7 +961,7 @@ def execute(self, build_plan, zip_stream, query):
if not path:
path = tf_work_dir
if not os.path.isabs(path):
path = os.path.join(tf_work_dir, path)
path = os.path.normpath(os.path.join(tf_work_dir, path))

if log.isEnabledFor(DEBUG2):
log.debug("exec shell script ...")
Expand Down

0 comments on commit 0224ce0

Please sign in to comment.