github.com/andrewsun2898/u-root@v6.0.1-0.20200616011413-4b2895c1b815+incompatible/pkg/boot/grub/testdata/bash_wrapper.sh (about) 1 #!/bin/bash 2 # this wrapper calls $1 instead of the buildin for echo while running $2 3 echocmd=$1 4 enable -n echo 5 mkdir testdata/bin 6 echo "#!/bin/bash" > testdata/bin/echo 7 echo "$echocmd \"\$@\"" >> testdata/bin/echo 8 chmod +x testdata/bin/echo 9 export PATH=$(realpath testdata/bin):$PATH 10 11 source $2