📝 Updated reboot/shutdown.sh scripts
This commit is contained in:
parent
3abd0c95e1
commit
72bc26c622
2 changed files with 0 additions and 12 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [ -d "$HOME/.recycle-bin" ] ; then
|
||||||
doas rm -r "$HOME/.recycle-bin/" && doas reboot
|
doas rm -r "$HOME/.recycle-bin/" && doas reboot
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [ -d "$HOME/.recycle-bin" ] ; then
|
||||||
doas rm -r "$HOME/.recycle-bin/" && doas shutdown -h now
|
doas rm -r "$HOME/.recycle-bin/" && doas shutdown -h now
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue