diff --git a/scripts/reboot.sh b/scripts/reboot.sh index 93c224f7..60020ce8 100755 --- a/scripts/reboot.sh +++ b/scripts/reboot.sh @@ -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 diff --git a/scripts/shutdown.sh b/scripts/shutdown.sh index 26a9308b..338d3dc8 100755 --- a/scripts/shutdown.sh +++ b/scripts/shutdown.sh @@ -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