Support dry run in activation script
If the `DRY_RUN` variable is set then no actual change should be performed. Only printing what actions would be taken.
This commit is contained in:
parent
a5c8362f7b
commit
b1f84ada60
3 changed files with 29 additions and 9 deletions
|
|
@ -183,7 +183,11 @@ in
|
|||
dconfPath = "/org/gnome/terminal/legacy/";
|
||||
in
|
||||
''
|
||||
${pkgs.gnome3.dconf}/bin/dconf load ${dconfPath} < ${sf}
|
||||
if [[ $DRY_RUN ]]; then
|
||||
echo ${pkgs.gnome3.dconf}/bin/dconf load ${dconfPath} "<" ${sf}
|
||||
else
|
||||
${pkgs.gnome3.dconf}/bin/dconf load ${dconfPath} < ${sf}
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue