From 0faf8b4b3615570ee64f55051ba6cfabc7e88ae8 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sun, 22 May 2022 08:43:28 -0700 Subject: [PATCH] rmswp: exit on error --- .config/shell/bin/rmswp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/shell/bin/rmswp b/.config/shell/bin/rmswp index 4e960f7..31f2adc 100755 --- a/.config/shell/bin/rmswp +++ b/.config/shell/bin/rmswp @@ -2,6 +2,8 @@ # Deletes the swapfile created by mkswp() +set -e + if [ -d /swap ]; then SWAPFILE=/swap/swapfile else