📝 Updated reboot/shutdown.sh scripts

This commit is contained in:
z3rOR0ne 2022-12-17 16:02:40 -08:00
parent 3abd0c95e1
commit 72bc26c622
2 changed files with 0 additions and 12 deletions

View file

@ -1,11 +1,5 @@
#!/bin/bash
last_line_first_word=$(awk '{w=$1} END{print w}' $HOME/.zshrc)
if [[ $last_line_first_word == "export" ]] ; then
sed -i '$ d' $HOME/.zshrc
fi
if [ -d "$HOME/.recycle-bin" ] ; then
doas rm -r "$HOME/.recycle-bin/" && doas reboot
else

View file

@ -1,11 +1,5 @@
#!/bin/bash
last_line_first_word=$(awk '{w=$1} END{print w}' $HOME/.zshrc)
if [[ $last_line_first_word == "export" ]] ; then
sed -i '$ d' $HOME/.zshrc
fi
if [ -d "$HOME/.recycle-bin" ] ; then
doas rm -r "$HOME/.recycle-bin/" && doas shutdown -h now
else