Usage()
{
- echo "Usage: $NAME"; echo
+ echo "Usage: $NAME" 2>&1; echo
exit 1
}
[ $# -eq 0 ] || Usage
if [ ! -d "$HOME/.bup" ]; then
- echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!"
+ echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!" >&2
exit 1
fi
[ -r "$ax_common" ] && . "$ax_common"
done
if [ -z "$ax_common_sourced" ]; then
- echo "Error ($(basename "$0")): \"ax-common.sh\" not found, aborting!"
+ echo "Error ($(basename "$0")): \"ax-common.sh\" not found, aborting!" >&2
echo "Please install 'ax-unix', \"Alex' UNIX Tools & Scripts\", and try again."
exit 99
fi
[ -r "$ax_common" ] && . "$ax_common"
done
if [ -z "$ax_common_sourced" ]; then
- echo "Error ($(basename "$0")): \"ax-common.sh\" not found, aborting!"
+ echo "Error ($NAME): \"ax-common.sh\" not found, aborting!" >&2
echo "Please install 'ax-unix', \"Alex' UNIX Tools & Scripts\", and try again."
exit 99
fi