summaryrefslogtreecommitdiffstats
path: root/tests/remove-sibling.sh
blob: c5af88a547bbe0afe3114b9f4465dec6709dd13c (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

for file in "${1%/*}"/*; do
    if [ "$file" != "$1" ]; then
        rm "$file"
        exit $?
    fi
done

exit 1