mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-03 07:23:39 +02:00
more portable version of sed in-place editing
This commit is contained in:
parent
6f40eb556d
commit
df129d147b
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ update_userjs () {
|
|||
echo -e "Status: ${GREEN}user.js has been backed up and replaced with the latest version!${NC}"
|
||||
|
||||
if [ "$ESR" = true ]; then
|
||||
sed -i.bak 's/\/\* \(ESR[0-9]\{2,\}\.x still uses all.*\)/\/\/ \1/' user.js
|
||||
sed -e 's/\/\* \(ESR[0-9]\{2,\}\.x still uses all.*\)/\/\/ \1/' user.js > user.js.tmp && mv user.js.tmp user.js
|
||||
echo -e "Status: ${GREEN}ESR related preferences have been activated!${NC}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue