mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
blitz.conf: add sudo for new entries
This commit is contained in:
parent
e5f7f447d9
commit
dd10808f9f
@ -47,7 +47,7 @@ if [ "$1" = "set" ]; then
|
||||
# check if key needs to be added (prepare new entry)
|
||||
entryExists=$(grep -c "^${keystr}=" ${configFile})
|
||||
if [ ${entryExists} -eq 0 ]; then
|
||||
echo "${keystr}=" | tee -a ${configFile}
|
||||
echo "${keystr}=" | sudo tee -a ${configFile}
|
||||
fi
|
||||
|
||||
# add valuestr quotes if not standard values
|
||||
|
Loading…
Reference in New Issue
Block a user