mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-23 02:28:58 +00:00
Remove tabs
This commit is contained in:
parent
8233278ce0
commit
fe504e4a19
5
tomb
5
tomb
@ -292,7 +292,7 @@ _is_encrypted_block() {
|
||||
[[ $? -eq 0 ]] && s="--inverse"
|
||||
|
||||
sudo lsblk $s -o type -n $b 2>/dev/null \
|
||||
| egrep -q '^crypt$'
|
||||
| egrep -q '^crypt$'
|
||||
|
||||
return $?
|
||||
}
|
||||
@ -313,7 +313,6 @@ _ensure_safe_swap() {
|
||||
[[ -z "$swaps" ]] && return 0 # No swap partition is active
|
||||
|
||||
_message "An active swap partition is detected..."
|
||||
|
||||
for s in $=swaps; do
|
||||
{ _is_encrypted_block $s } && { r=2 } || { r=1; break }
|
||||
done
|
||||
@ -324,7 +323,7 @@ _ensure_safe_swap() {
|
||||
_warning "This poses a security risk."
|
||||
_warning "You can deactivate all swap partitions using the command:"
|
||||
_warning " swapoff -a"
|
||||
_warning "[#163] I may not detect plain swaps on an encrypted volume."
|
||||
_warning "[#163] I may not detect plain swaps on an encrypted volume."
|
||||
_warning "But if you want to proceed like this, use the -f (force) flag."
|
||||
fi
|
||||
return $r
|
||||
|
Loading…
Reference in New Issue
Block a user