10 lines
142 B
Bash
Executable File
10 lines
142 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eou pipefail
|
|
|
|
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
|
|
|
|
if [ -f "$1" ]; then
|
|
error "File '$1' found"
|
|
exit 1
|
|
fi |