mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
shellcheck fix
This commit is contained in:
parent
52f29ffeba
commit
132809349d
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ _mkfs() {
|
|||
if echo "${1}" | grep -q '^/dev'; then
|
||||
mkswap -L "${6}" "${1}" &>"${_LOG}" || : >/tmp/.mp-error
|
||||
else
|
||||
[[ -d $(dirname "${3}${1}") ]] || mkdir -p $(dirname "${3}${1}")
|
||||
[[ -d $(dirname "${3}${1}") ]] || mkdir -p "$(dirname "${3}${1}")"
|
||||
# remove existing swap file
|
||||
[[ -f "${3}${1}" ]] && rm "${3}${1}"
|
||||
# btrfs needs NO_COW attribute
|
||||
|
|
Loading…
Reference in a new issue