aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-dir-move.sh
blob: 37182f34cd180db12ff910b52f2c70727b336f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
mkdir d1
touch d1/f1
mv d1 d2
fileuid=`\ls -n1 d2/f1 | awk '{ print $3 }'`
if [ "$fileuid" == "$UID" ]
then
    #echo "Passed."
    rm -rf d2
    exit 0
fi
rm -rf d2
#echo "Failed"
exit 1