2eafb8192e
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
18 lines
316 B
Bash
18 lines
316 B
Bash
set +u
|
|
source $TESTED/home-path/etc/profile.d/hm-session-vars.sh
|
|
set -u
|
|
|
|
check_arguments () {
|
|
if [ "$1" != "$2" ]; then
|
|
@coreutils@/bin/cat <<- EOF
|
|
Expected arguments:
|
|
$1
|
|
but got:
|
|
$2
|
|
EOF
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
check_arguments "--create-frame" "$($EDITOR)"
|
|
check_arguments "foo bar baz" "$($EDITOR foo bar baz)"
|