This commit is contained in:
2022-05-20 10:24:52 +02:00
parent 532810f974
commit 582ced090f

13
good.sh Normal file
View File

@@ -0,0 +1,13 @@
#! /bin/bash
set -eu
IFS=$'\n\t'
test $# -eq 1 || exit 1
[ -d ${1:-} -o -f ${1:-} ] || exit 2
[[ $1 =~ \.\. ]] && exit 3
echo rm -f $1