From 28027b9a787b80336d0923cf0e438484f2786c0d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 26 Dec 2022 16:41:45 -0500 Subject: [PATCH] chore: run shfmt --- debian/postinst | 3 +-- debian/preinst | 6 ++---- plugins/storage/storage-list | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/debian/postinst b/debian/postinst index c5f578c46..0663ca651 100755 --- a/debian/postinst +++ b/debian/postinst @@ -126,8 +126,7 @@ dpkg-handling() { case "$1" in abort-upgrade | abort-remove | abort-deconfigure) ;; - \ - configure) + configure) mandb [ ! -x /usr/bin/docker.io ] || ln -sf /usr/bin/docker.io /usr/local/bin/docker if [[ -f /sbin/modprobe ]]; then diff --git a/debian/preinst b/debian/preinst index 7493eca05..e4dfdef5e 100755 --- a/debian/preinst +++ b/debian/preinst @@ -22,11 +22,9 @@ case "$1" in upgrade) ;; - \ - abort-upgrade) ;; + abort-upgrade) ;; - \ - *) + *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; diff --git a/plugins/storage/storage-list b/plugins/storage/storage-list index 297bf12d4..aeb177829 100755 --- a/plugins/storage/storage-list +++ b/plugins/storage/storage-list @@ -13,9 +13,9 @@ trigger-storage-storage-list() { get_bind_mounts "$(fn-get-phase-file-path "$APP" "$PHASE")" else while read -r line; do - local host_path="$(awk -F: '{print $1}' <<< "$line")" - local container_path="$(awk -F: '{print $2}' <<< "$line")" - local volume_options="$(awk -F: '{print $3}' <<< "$line")" + local host_path="$(awk -F: '{print $1}' <<<"$line")" + local container_path="$(awk -F: '{print $2}' <<<"$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}' done < <(get_bind_mounts "$(fn-get-phase-file-path "$APP" "$PHASE")") | jq -M -n '[inputs]' fi