Skip to content

Commit 0224ce0

Browse files
committed
fix: pass tests
1 parent fe72310 commit 0224ce0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,9 @@ def execute(self, build_plan, zip_stream, query):
905905
log.debug("WORKDIR: %s", sh_work_dir)
906906
if source_path:
907907
if not os.path.isabs(source_path):
908-
source_path = os.path.join(sh_work_dir, source_path)
908+
source_path = os.path.normpath(
909+
os.path.join(sh_work_dir, source_path)
910+
)
909911
else:
910912
source_path = sh_work_dir
911913
if os.path.isdir(source_path):
@@ -959,7 +961,7 @@ def execute(self, build_plan, zip_stream, query):
959961
if not path:
960962
path = tf_work_dir
961963
if not os.path.isabs(path):
962-
path = os.path.join(tf_work_dir, path)
964+
path = os.path.normpath(os.path.join(tf_work_dir, path))
963965

964966
if log.isEnabledFor(DEBUG2):
965967
log.debug("exec shell script ...")

0 commit comments

Comments
 (0)