Skip to content

Commit fc6014a

Browse files
committed
Don't use sudo, fix tests
1 parent 6d32b0e commit fc6014a

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function _replaceTokens(filePath, tokens) {
4141
// tokens start with a $ which needs to be escaped, oops
4242
var _token = '\\' + token,
4343
// use commas as delims so that we don't need to escape value, which might be a URL
44-
cmd = 'sudo sed -i "s,' + _token + ',' + value + ',g" ' + filePath;
44+
cmd = 'sed -i "s,' + _token + ',' + value + ',g" ' + filePath;
4545
execSync(cmd);
4646
}
4747

test/.xinitrc.tpl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
xscreensaver -no-splash
2-
3-
xset s off
4-
xset -dpms
5-
xset s noblank
6-
71
exec /usr/bin/chromium --noerrdialogs --kiosk --incognito $url

0 commit comments

Comments
 (0)