haiku/build/scripts/rm_attrs
2021-09-06 15:58:03 -04:00

18 lines
150 B
Bash
Executable File

#!/bin/sh
set -e
if [ $# -lt 2 ]; then
echo "$0: Usage:..."
exit 1
fi
rmAttrs=$1
shift
if [ -f $rmAttrs ]; then
$rmAttrs "$@"
else
rm "$@"
fi