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

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

exit 1