mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 23:06:28 +00:00
Remove tabs
This commit is contained in:
parent
22f0705f21
commit
21415b157f
5
tomb
5
tomb
@ -291,7 +291,7 @@ _is_encrypted_block() {
|
|||||||
[[ $? -eq 0 ]] && s="--inverse"
|
[[ $? -eq 0 ]] && s="--inverse"
|
||||||
|
|
||||||
sudo lsblk $s -o type -n $b 2>/dev/null \
|
sudo lsblk $s -o type -n $b 2>/dev/null \
|
||||||
| egrep -q '^crypt$'
|
| egrep -q '^crypt$'
|
||||||
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
@ -312,7 +312,6 @@ _ensure_safe_swap() {
|
|||||||
[[ -z "$swaps" ]] && return 0 # No swap partition is active
|
[[ -z "$swaps" ]] && return 0 # No swap partition is active
|
||||||
|
|
||||||
_message "An active swap partition is detected..."
|
_message "An active swap partition is detected..."
|
||||||
|
|
||||||
for s in $=swaps; do
|
for s in $=swaps; do
|
||||||
{ _is_encrypted_block $s } && { r=2 } || { r=1; break }
|
{ _is_encrypted_block $s } && { r=2 } || { r=1; break }
|
||||||
done
|
done
|
||||||
@ -323,7 +322,7 @@ _ensure_safe_swap() {
|
|||||||
_warning "This poses a security risk."
|
_warning "This poses a security risk."
|
||||||
_warning "You can deactivate all swap partitions using the command:"
|
_warning "You can deactivate all swap partitions using the command:"
|
||||||
_warning " swapoff -a"
|
_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."
|
_warning "But if you want to proceed like this, use the -f (force) flag."
|
||||||
fi
|
fi
|
||||||
return $r
|
return $r
|
||||||
|
Loading…
Reference in New Issue
Block a user