aboutsummaryrefslogtreecommitdiff
path: root/src/wrappers/singlearg.sh
blob: f742d138322a570b15be915f1952f63ae56f22d7 (plain)
1
2
3
4
5
6
7
# Ensure to work with a single argument.
if [ $# -gt 1 ]; then
    first_arg="$1"
    shift
    err "Warning:  extra arguments '$@' will be ignored."
    set -- $first_arg
fi