From e47f472736054add2c356dcb8f51fb9a88e4dfe1 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 5 Oct 2017 22:34:18 -0700 Subject: [PATCH] write protection prevention --- install_packages.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install_packages.sh b/install_packages.sh index 61986df..aab09e7 100755 --- a/install_packages.sh +++ b/install_packages.sh @@ -15,6 +15,7 @@ options=(1 "LaTeX packages" off 7 "transmission torrent client" off ) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) +rm -f /home/$USER/.choices #Needed if write protected from root script. echo $choices > /home/$USER/.choices clear @@ -25,6 +26,7 @@ options=(1 "qutebrowser" off # any option can be set to default to "on" 4 "Waterfox" off ) browch=$("${brow[@]}" "${options[@]}" 2>&1 >/dev/tty) +rm -f /home/$USER/.browch #Needed if write protected from root script. echo $browch > /home/$USER/.browch clear