diff options
author | Roger Leigh <rleigh@debian.org> | 2013-01-04 23:02:26 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2013-01-05 00:06:39 +0000 |
commit | a98b7ebd60032800901163fac9228721868157f8 (patch) | |
tree | 4c63c701a5ed6e1da0cd1bce130bdaa606dd2d8c /contrib | |
parent | 883f5504e19302a51d474a94efebc3bb7f824ac4 (diff) | |
download | schroot-a98b7ebd60032800901163fac9228721868157f8.tar.gz |
Replace tabs with spaces in all source code
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/setup.d/05customdir | 40 | ||||
-rw-r--r-- | contrib/setup.d/10mount-ssh | 2 |
2 files changed, 21 insertions, 21 deletions
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}" |