From 281cbbd6cd8ecfc3d5c1a365ae01f2e49ad25f24 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Wed, 2 Nov 2016 22:28:23 +0100 Subject: indent heredocs and replace echos with heredoc where appropriate --- setup-alpine.in | 88 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) (limited to 'setup-alpine.in') diff --git a/setup-alpine.in b/setup-alpine.in index efd6d4a..8b1d947 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -21,18 +21,18 @@ is_qemu() { } usage() { - cat <<__EOF__ -usage: setup-alpine [-ahq] [-c FILE | -f FILE] - -Setup Alpine Linux - -options: - -a Create Alpine Linux overlay file - -c Create answer file (do not install anything) - -f Answer file to use installation - -h Show this help - -q Quick mode. Ask fewer questions. -__EOF__ + cat <<-__EOF__ + usage: setup-alpine [-ahq] [-c FILE | -f FILE] + + Setup Alpine Linux + + options: + -a Create Alpine Linux overlay file + -c Create answer file (do not install anything) + -f Answer file to use installation + -h Show this help + -q Quick mode. Ask fewer questions. + __EOF__ exit 1 } @@ -63,51 +63,51 @@ fi if [ "$CREATEANSWERFILE" != "" ]; then touch "$CREATEANSWERFILE" || echo "Cannot touch file $CREATEANSWERFILE" - cat <<__EOF__ > "$CREATEANSWERFILE" -# Example answer file for setup-alpine script -# If you don't want to use a certain option, then comment it out + cat > "$CREATEANSWERFILE" <<-__EOF__ + # Example answer file for setup-alpine script + # If you don't want to use a certain option, then comment it out -# Use US layout with US variant -KEYMAPOPTS="us us" + # Use US layout with US variant + KEYMAPOPTS="us us" -# Set hostname to alpine-test -HOSTNAMEOPTS="-n alpine-test" + # Set hostname to alpine-test + HOSTNAMEOPTS="-n alpine-test" -# Contents of /etc/network/interfaces -INTERFACESOPTS="auto lo -iface lo inet loopback + # Contents of /etc/network/interfaces + INTERFACESOPTS="auto lo + iface lo inet loopback -auto eth0 -iface eth0 inet dhcp - hostname alpine-test -" + auto eth0 + iface eth0 inet dhcp + hostname alpine-test + " -# Search domain of example.com, Google public nameserver -DNSOPTS="-d example.com 8.8.8.8" + # Search domain of example.com, Google public nameserver + DNSOPTS="-d example.com 8.8.8.8" -# Set timezone to UTC -TIMEZONEOPTS="-z UTC" + # Set timezone to UTC + TIMEZONEOPTS="-z UTC" -# set http/ftp proxy -PROXYOPTS="http://webproxy:8080" + # set http/ftp proxy + PROXYOPTS="http://webproxy:8080" -# Add a random mirror -APKREPOSOPTS="-r" + # Add a random mirror + APKREPOSOPTS="-r" -# Install Openssh -SSHDOPTS="-c openssh" + # Install Openssh + SSHDOPTS="-c openssh" -# Use openntpd -NTPOPTS="-c openntpd" + # Use openntpd + NTPOPTS="-c openntpd" -# Use /dev/sda as a data disk -DISKOPTS="-m data /dev/sda" + # Use /dev/sda as a data disk + DISKOPTS="-m data /dev/sda" -# Setup in /media/sdb1 -LBUOPTS="/media/sdb1" -APKCACHEOPTS="/media/sdb1/cache" + # Setup in /media/sdb1 + LBUOPTS="/media/sdb1" + APKCACHEOPTS="/media/sdb1/cache" -__EOF__ + __EOF__ echo "Answer file $CREATEANSWERFILE has been created. Please add or remove options as desired in that file" exit 0 fi -- cgit v1.2.3