github.com/insomniacslk/u-root@v0.0.0-20200717035308-96b791510d76/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