watch process default to null
This commit is contained in:
parent
6f72a66019
commit
6f4955581b
|
@ -2,7 +2,7 @@ pkgs: {
|
||||||
cmd,
|
cmd,
|
||||||
setup ? null,
|
setup ? null,
|
||||||
stop ? null,
|
stop ? null,
|
||||||
process ? "echo \"$out\"",
|
process ? null,
|
||||||
view ? null,
|
view ? null,
|
||||||
}:
|
}:
|
||||||
pkgs.writeShellScriptBin "watch" ''
|
pkgs.writeShellScriptBin "watch" ''
|
||||||
|
@ -11,7 +11,7 @@ pkgs.writeShellScriptBin "watch" ''
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
out=$(${cmd})
|
out=$(${cmd})
|
||||||
${process}
|
${toString process}
|
||||||
${
|
${
|
||||||
if view == null
|
if view == null
|
||||||
then ""
|
then ""
|
||||||
|
|
Loading…
Reference in a new issue