Add new stuff
This commit is contained in:
parent
506b8adb74
commit
1d1ecf4215
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue