about summary refs log tree commit diff
path: root/tests/substituter2.sh
blob: 84925b94405f316fa6cdf9737db25fac5056397b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Set a PATH (!!! impure).
export PATH=/bin:/usr/bin:$PATH

mkdir $out

cat > $out/substituter <<EOF
#! /bin/sh -ex
echo \$*

case \$* in
    *)
        exit 1
        ;;
esac        
EOF

chmod +x $out/substituter