Skip to content

Commit e3e4436

Browse files
committed
Cleanup bk-mount-instance-storage.sh
1 parent 704c2a8 commit e3e4436

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packer/linux/conf/bin/bk-mount-instance-storage.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ exec > >(tee -a /var/log/elastic-stack.log | logger -t user-data -s 2>/dev/conso
88
# Mount instance storage if we can
99
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html
1010

11-
# Move docker root to the ephemeral device
1211
if [[ "${BUILDKITE_ENABLE_INSTANCE_STORAGE:-false}" != "true" ]]; then
1312
echo "Skipping mounting instance storage"
1413
exit 0
@@ -17,8 +16,7 @@ fi
1716
#shellcheck disable=SC2207
1817
devices=($(nvme list | grep "Amazon EC2 NVMe Instance Storage" | cut -f1 -d' '))
1918

20-
if [ -z "${devices[*]}" ]
21-
then
19+
if [ -z "${devices[*]}" ]; then
2220
echo "No Instance Storage NVMe drives to mount" >&2
2321
exit 0
2422
fi

0 commit comments

Comments
 (0)