diff --git a/.bash_aliases b/.bash_aliases index d1ba5e7..ee37d2d 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -38,11 +38,11 @@ function download_github_folder() { } function bye() { - if ps -p $(pidof rsync) > /dev/null + if ps -p $(pidof rsync) 2> /dev/null then echo 'Rsync is running, not going to sleep.' else - echo 'systemctl supend' + systemctl suspend fi }