Skip to content

Commit 4a506db

Browse files
authored
fix: use sudo_if_available to normalise files
1 parent 7eefdb9 commit 4a506db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/config-diff.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function main {
255255
local file="$1"
256256
local text="$2"
257257

258-
sed -i "s#/tmp/$text/\(.*\)#/tmp/\1#g" "$file"
258+
sudo_if_available sed -i "s#/tmp/$text/\(.*\)#/tmp/\1#g" "$file"
259259
}
260260

261261
function normalise_files_in_folder() {

0 commit comments

Comments
 (0)