summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2011-11-01 20:38:42 -0400
committerPierre Schmitz <pierre@archlinux.de>2011-11-04 19:33:29 +0100
commit42d821ef7b9cfdf4a401563a9351820499620afa (patch)
treef01e902c854e1ada6dcf0865c212b71810e7c61a /mkarchroot.in
parentaea075d817b579fa5b4f45a10cdce1c7f822c571 (diff)
Capitalize output messages
Some of the output/error messages were capitalized, some were not. This patch capitalize everything for consistency sake. Other minor changes were done to the messages like removing the superfluous "error:" from die messages and adding a final period to messages that were complete sentences as appropriate. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'mkarchroot.in')
-rw-r--r--mkarchroot.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index 9361bef..6238979 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -48,21 +48,21 @@ while getopts 'r:ufnhC:M:c:' arg; do
done
if [ "$EUID" != '0' ]; then
- die 'this script must be run as root.'
+ die 'This script must be run as root.'
fi
shift $(($OPTIND - 1))
if [ "$RUN" = '' -a $# -lt 2 ]; then
- die 'you must specify a directory and one or more packages'
+ die 'You must specify a directory and one or more packages.'
elif [ $# -lt 1 ]; then
- die 'you must specify a directory'
+ die 'You must specify a directory.'
fi
working_dir="$(readlink -f ${1})"
shift 1
-[ "${working_dir}" = '' ] && die 'please specify a working directory'
+[ "${working_dir}" = '' ] && die 'Please specify a working directory.'
if [ -z "$cache_dir" ]; then
cache_conf=${working_dir}/etc/pacman.conf
@@ -149,7 +149,7 @@ chroot_lock () {
# Lock the chroot. Take note of the FD number.
if ! flock -n 9; then
- stat_busy "locking chroot"
+ stat_busy "Locking chroot"
flock 9
stat_done
fi
@@ -161,7 +161,7 @@ if [ "$RUN" != "" ]; then
# run chroot {{{
#Sanity check
if [ ! -f "${working_dir}/.arch-chroot" ]; then
- die "'${working_dir}' does not appear to be a Arch chroot"
+ die "'${working_dir}' does not appear to be a Arch chroot."
fi
chroot_lock
@@ -174,7 +174,7 @@ if [ "$RUN" != "" ]; then
else
# {{{ build chroot
if [ -e "${working_dir}" -a "${FORCE}" = "n" ]; then
- die "working dir '${working_dir}' already exists - try using -f"
+ die "Working directory '${working_dir}' already exists - try using -f"
fi
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
@@ -198,7 +198,7 @@ else
op="${op}f"
fi
if ! pacman ${op} ${pacargs} $@; then
- die 'failed to install all packages'
+ die 'Failed to install all packages'
fi
fi