From a98b7ebd60032800901163fac9228721868157f8 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Fri, 4 Jan 2013 23:02:26 +0000 Subject: Replace tabs with spaces in all source code --- contrib/setup.d/05customdir | 40 ++++++++++++++++++++-------------------- contrib/setup.d/10mount-ssh | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) (limited to 'contrib') diff --git a/contrib/setup.d/05customdir b/contrib/setup.d/05customdir index 4eff3401..8ae87080 100755 --- a/contrib/setup.d/05customdir +++ b/contrib/setup.d/05customdir @@ -46,10 +46,10 @@ do_mount() info "Mounting $2 on $3" if [ ! -d "$3" ]; then - mkdir -p "$3" + mkdir -p "$3" fi if [ ! -d "$3" ]; then - fatal "$3 does not exist, and could not be created" + fatal "$3 does not exist, and could not be created" fi info "$MOUNT_VERBOSE $1 $2 $3" @@ -62,30 +62,30 @@ if [ "$CHROOT_TYPE" = "custom" ] && [ -n "$CUSTOM_DIR" ]; then info "CUSTOM SETUP using $CUSTOM_DIR" - case "$HOST_OS" in - freebsd* | k*bsd*-gnu) : - BINDOPT="-t nullfs" - ;; - *): - BINDOPT="--bind" - ;; - esac + case "$HOST_OS" in + freebsd* | k*bsd*-gnu) : + BINDOPT="-t nullfs" + ;; + *): + BINDOPT="--bind" + ;; + esac - CHROOT_MOUNT_OPTIONS="$BINDOPT $CHROOT_MOUNT_OPTIONS" - CHROOT_MOUNT_DEVICE="$CUSTOM_DIR" + CHROOT_MOUNT_OPTIONS="$BINDOPT $CHROOT_MOUNT_OPTIONS" + CHROOT_MOUNT_DEVICE="$CUSTOM_DIR" - if [ ! -d "$CUSTOM_DIR" ]; then - fatal "Directory '$CUSTOM_DIR' does not exist" - fi + if [ ! -d "$CUSTOM_DIR" ]; then + fatal "Directory '$CUSTOM_DIR' does not exist" + fi if [ ! -d "$CHROOT_MOUNT_LOCATION" ]; then - mkdir -p "$CHROOT_MOUNT_LOCATION" + mkdir -p "$CHROOT_MOUNT_LOCATION" + fi + if [ ! -d "$CHROOT_MOUNT_LOCATION" ]; then + fatal "$CHROOT_MOUNT_LOCATION does not exist, and could not be created" fi - if [ ! -d "$CHROOT_MOUNT_LOCATION" ]; then - fatal "$CHROOT_MOUNT_LOCATION does not exist, and could not be created" - fi - do_mount "$CHROOT_MOUNT_OPTIONS" "$CHROOT_MOUNT_DEVICE" "$CHROOT_MOUNT_LOCATION" + do_mount "$CHROOT_MOUNT_OPTIONS" "$CHROOT_MOUNT_DEVICE" "$CHROOT_MOUNT_LOCATION" fi diff --git a/contrib/setup.d/10mount-ssh b/contrib/setup.d/10mount-ssh index 1b9e832c..52b111ba 100644 --- a/contrib/setup.d/10mount-ssh +++ b/contrib/setup.d/10mount-ssh @@ -39,7 +39,7 @@ SOCK_DIR="$(dirname "${SSH_AUTH_SOCK}")" if [ "$ACTION" = "setup-start" ] ; then if [ -e "${CHROOT_PATH}/${SSH_AUTH_SOCK}" ] ; then - exit 0 + exit 0 fi mkdir -p "${CHROOT_PATH}/${SOCK_DIR}" mount -o bind "${SOCK_DIR}" "${CHROOT_PATH}/${SOCK_DIR}" -- cgit v1.2.3