mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-26 22:45:03 +01:00
14 lines
178 B
Bash
14 lines
178 B
Bash
#!/usr/bin/env bash
|
|
set -eu -o pipefail
|
|
|
|
x='some-test'
|
|
|
|
case "${x}" in
|
|
*'_'*|*'-'*)
|
|
echo "The string contains _ or -"
|
|
;;
|
|
*)
|
|
echo 'No pattern matched'
|
|
;;
|
|
esac
|