example-script/example.sh

15 lines
153 B
Bash
Raw Normal View History

2022-07-07 22:50:56 +02:00
#! /bin/bash
2022-07-07 23:17:36 +02:00
case "$@" in *--opt-1*|*-h*)
2022-07-07 22:50:56 +02:00
echo OPT_1
2022-07-07 23:17:36 +02:00
exit 0;
2022-07-07 22:50:56 +02:00
esac
case "$@" in *--opt-2*)
echo OPT_2
esac
case "$@" in *--opt-3*)
echo OPT_3
esac