From 72bc26c6228c16abdd4c1e0e7ad5a785bd65e2c1 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sat, 17 Dec 2022 16:02:40 -0800 Subject: [PATCH] :memo: Updated reboot/shutdown.sh scripts --- scripts/reboot.sh | 6 ------ scripts/shutdown.sh | 6 ------ 2 files changed, 12 deletions(-) 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