Skip to content

Commit

Permalink
Removing useless whitespaces and empty lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed May 31, 2008
1 parent e4bc40b commit 2a72dd8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/live-snapshot
Expand Up @@ -95,7 +95,6 @@ Usage ()

exit 0
}


Version ()
{
Expand Down Expand Up @@ -197,7 +196,6 @@ Parse_args ()

esac
done

}

Defaults ()
Expand Down Expand Up @@ -229,7 +227,6 @@ Defaults ()
Error "unrecognized resync string"
;;
esac

else
# Set target file based on image
case "${SNAP_TYPE}" in
Expand All @@ -246,14 +243,14 @@ Defaults ()
;;
esac
fi

}

Validate_input ()
{
case "${SNAP_TYPE}" in
case "${SNAP_TYPE}" in
cpio|squashfs|jffs2|ext2|ext3)
;;

*)
Error "invalid filesystem type \"${SNAP_TYPE}\""
;;
Expand All @@ -279,6 +276,7 @@ Mount_device ()
# create a temp
mount -t tmpfs -o rw tmpfs "${MOUNTP}"
;;

*)
if [ -b "${SNAP_DEV}" ]
then
Expand Down Expand Up @@ -333,7 +331,7 @@ Main ()
Parse_args "${@}"
Defaults
Validate_input
trap 'Clean' EXIT
trap 'Clean' EXIT
Mount_device
Do_snapshot
}
Expand Down

0 comments on commit 2a72dd8

Please sign in to comment.