Add new stuff

This commit is contained in:
ViktorBarzin 2018-01-22 12:00:02 +00:00
parent 506b8adb74
commit 1d1ecf4215

View file

@ -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
}