github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+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