example-script/example.sh

14 lines
139 B
Bash
Executable File

#! /bin/bash
case "$@" in *--opt-1*)
echo OPT_1
esac
case "$@" in *--opt-2*)
echo OPT_2
esac
case "$@" in *--opt-3*)
echo OPT_3
esac