Skip to content

Commit 2399ff1

Browse files
mfxaMarcus Funch
authored andcommitted
Switch delimiters as there are no longer slashes in the content
1 parent 4a4456f commit 2399ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

os2borgerpc/sikkerhed/desktop_toggle_writable.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ ACTIVATE=$1
3838
make_desktop_writable() {
3939
# All of the matched lines are deleted. This function thus serves to undo write access removal
4040
# shellcheck disable=SC2016
41-
sed --in-place --expression "\@chattr [-+]i@d" --expression "\@chown -R root:@d" \
42-
--expression "\@$COMMENT@d" --expression '\@runuser@d' --expression '\@export@d' $USER_CLEANUP
41+
sed --in-place --expression "/chattr [-+]i/d" --expression "/chown -R root:/d" \
42+
--expression "/$COMMENT/d" --expression '/runuser/d' --expression '/export/d' $USER_CLEANUP
4343
chattr -i "$DESKTOP"
4444
}
4545

0 commit comments

Comments
 (0)