[manjaro-chroot] format help; small help fix

This commit is contained in:
udeved 2015-07-04 20:24:49 +02:00
parent f03b057dd2
commit 29f27d76db

View file

@ -46,10 +46,11 @@ usage() {
echo ' -q Query settings and pretend'
echo ' -h Print this help message'
echo ''
echo "If 'command' is unspecified, ${0##*/} will launch /bin/sh."
echo " If 'command' is unspecified, ${0##*/} will launch /bin/sh."
echo ''
echo " If 'automount' is true, ${0##*/} will launch /bin/bash"
echo " and ${chroots_dir}/manjaro-chroot."
echo ''
echo "If 'automount' is true, ${0##*/} will launch /bin/bash"
echo "and ${chroots_dir}/manjaro-chroot."
echo ''
exit $1
}
@ -62,8 +63,8 @@ while getopts ${opts} arg; do
case "${arg}" in
a) automount=true ;;
q) pretend=true ;;
*) echo "invalid argument ${arg}"; usage 1;;
h|?) usage 0 ;;
*) echo "invalid argument ${arg}"; usage 1 ;;
esac
done
shift $(( OPTIND - 1 ))