1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Merge pull request #1101 from Enzime/quiet-pgrep

defaults: don't output Dock PID
This commit is contained in:
Emily 2024-10-14 03:59:35 +01:00 committed by GitHub
commit ccf8cc56c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,7 +113,7 @@ in
${optionalString (length dock > 0) '' ${optionalString (length dock > 0) ''
# Only restart Dock if current user is logged in # Only restart Dock if current user is logged in
if pgrep -xu $UID Dock; then if pgrep -xu $UID Dock >/dev/null; then
echo >&2 "restarting Dock..." echo >&2 "restarting Dock..."
killall Dock || true killall Dock || true
fi fi