projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: shfmt, shellcheck, and whitespace
[webi-installers/.git]
/
vps-addswap
/
install.sh
diff --git
a/vps-addswap/install.sh
b/vps-addswap/install.sh
index e3e3702d254d2621cfe8e96b45373f76831c6867..dd0bf5ba16008fa8e1c0f2a2bab7dd10dca6efef 100644
(file)
--- a/
vps-addswap/install.sh
+++ b/
vps-addswap/install.sh
@@
-8,13
+8,13
@@
my_size=${1:-$default_size}
if [ "0" != "$EUID" ] && [ "0" != "$UID" ]; then
my_size=${1:-$default_size}
if [ "0" != "$EUID" ] && [ "0" != "$UID" ]; then
- echo Usage:
- echo ' sudo env PATH="$PATH" vps-addswap' $my_size
- exit 1
+
echo Usage:
+
echo ' sudo env PATH="$PATH" vps-addswap' $my_size
+
exit 1
fi
if [ -f "/var/swapfile" ]; then
fi
if [ -f "/var/swapfile" ]; then
- swapoff /var/swapfile
+
swapoff /var/swapfile
fi
# Allocate a swapfile
fi
# Allocate a swapfile