Skip to content

Commit 80713d3

Browse files
committed
resolve shell check errors
1 parent baefb0e commit 80713d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/deploy-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ then
3535
exit 1
3636
fi
3737

38-
root_config_file=$(echo $root_config_file | sed 's:^\.\/*::')
38+
# Remove the leading './' from the root configuration file path if any.
39+
root_config_file=${root_config_file/#'./'/}
3940

4041
root_config_file_repo_path="$config_dir_path$root_config_file"
4142
if [[ -f "$root_config_file_repo_path" ]]

0 commit comments

Comments
 (0)