File tree 1 file changed +2
-2
lines changed
src/sonic-build-hooks/scripts
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,15 @@ check_if_url_exist()
71
71
set_reproducible_mirrors ()
72
72
{
73
73
# Remove the charater # in front of the line if matched
74
- local expression=" s/^#\(.*$REPR_MIRROR_URL_PATTERN \)/\1/"
74
+ local expression=" s/^#\s*\ (.*$REPR_MIRROR_URL_PATTERN \)/\1/"
75
75
# Add the character # in front of the line, if not match the URL pattern condition
76
76
local expression2=" /^#*deb.*$REPR_MIRROR_URL_PATTERN /! s/^#*deb/#&/"
77
77
local expression3=" \$ a#SET_REPR_MIRRORS"
78
78
if [ " $1 " = " -d" ]; then
79
79
# Add the charater # in front of the line if match
80
80
expression=" s/^deb.*$REPR_MIRROR_URL_PATTERN /#\0/"
81
81
# Remove the character # in front of the line, if not match the URL pattern condition
82
- expression2=" /^#*deb.*$REPR_MIRROR_URL_PATTERN /! s/^#(#*deb)/\1/"
82
+ expression2=" /^#*deb.*$REPR_MIRROR_URL_PATTERN /! s/^#\s* (#*deb)/\1/"
83
83
expression3=" /#SET_REPR_MIRRORS/d"
84
84
fi
85
85
You can’t perform that action at this time.
0 commit comments