I am trying to run a git bash file in Windows 7, 64-bit. The file is below. The command is:
git test-bash
When the command is entered, there is a pause of no more than a second, then the prompt returns. There is no output to the terminal and no file created. What am I doing wrong?
file git-test-bash:
#!/bin/bash
# start
printf "test-bash-printf"
echo "test-bash-echo"
echo "test-bash-echo-to_file" > /d/Users/joeuser/bin/file.txt
git test-bash!=git-test-bashunless you are writing that as a git subcommand. Are you sure your script is being run? Where does the script live? What is the exit status ofgit test-bash?$?(see stackoverflow.com/questions/334879/…). If you append-xto the first line (#!/bin/bash -x) you get a trace of the issued commands and their result, which can be helpfull to debug the code.