chore: run shfmt
This commit is contained in:
1 parent
852dfc6287
commit
28027b9a78
3 files changed
+6
-9
No files matched your search
Vendored
+1
-2
@@ -126,8 +126,7 @@ dpkg-handling() {
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
abort-upgrade | abort-remove | abort-deconfigure) ;;
|
abort-upgrade | abort-remove | abort-deconfigure) ;;
|
||||||
|
|
||||||
\
|
configure)
|
||||||
configure)
|
|
||||||
mandb
|
mandb
|
||||||
[ ! -x /usr/bin/docker.io ] || ln -sf /usr/bin/docker.io /usr/local/bin/docker
|
[ ! -x /usr/bin/docker.io ] || ln -sf /usr/bin/docker.io /usr/local/bin/docker
|
||||||
if [[ -f /sbin/modprobe ]]; then
|
if [[ -f /sbin/modprobe ]]; then
|
||||||
|
|||||||
Vendored
+2
-4
@@ -22,11 +22,9 @@ case "$1" in
|
|||||||
|
|
||||||
upgrade) ;;
|
upgrade) ;;
|
||||||
|
|
||||||
\
|
abort-upgrade) ;;
|
||||||
abort-upgrade) ;;
|
|
||||||
|
|
||||||
\
|
*)
|
||||||
*)
|
|
||||||
echo "preinst called with unknown argument \`$1'" >&2
|
echo "preinst called with unknown argument \`$1'" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ trigger-storage-storage-list() {
|
|||||||
get_bind_mounts "$(fn-get-phase-file-path "$APP" "$PHASE")"
|
get_bind_mounts "$(fn-get-phase-file-path "$APP" "$PHASE")"
|
||||||
else
|
else
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
local host_path="$(awk -F: '{print $1}' <<< "$line")"
|
local host_path="$(awk -F: '{print $1}' <<<"$line")"
|
||||||
local container_path="$(awk -F: '{print $2}' <<< "$line")"
|
local container_path="$(awk -F: '{print $2}' <<<"$line")"
|
||||||
local volume_options="$(awk -F: '{print $3}' <<< "$line")"
|
local volume_options="$(awk -F: '{print $3}' <<<"$line")"
|
||||||
jq -n --arg host_path "$host_path" --arg container_path "$container_path" --arg volume_options "$volume_options" '{host_path: $host_path, container_path: $container_path, volume_options: $volume_options}'
|
jq -n --arg host_path "$host_path" --arg container_path "$container_path" --arg volume_options "$volume_options" '{host_path: $host_path, container_path: $container_path, volume_options: $volume_options}'
|
||||||
done < <(get_bind_mounts "$(fn-get-phase-file-path "$APP" "$PHASE")") | jq -M -n '[inputs]'
|
done < <(get_bind_mounts "$(fn-get-phase-file-path "$APP" "$PHASE")") | jq -M -n '[inputs]'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user