rmswp: exit on error
This commit is contained in:
parent
9b648b02c0
commit
0faf8b4b36
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
# Deletes the swapfile created by mkswp()
|
# Deletes the swapfile created by mkswp()
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ -d /swap ]; then
|
if [ -d /swap ]; then
|
||||||
SWAPFILE=/swap/swapfile
|
SWAPFILE=/swap/swapfile
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue