These are chat archives for bangorunix/2015
-sflag in order to create a link to your script, in one of the directories that is already on the PATH.
type=$1. It'll make it easier to keep track of what's going on in that variable. Print it out at multiple steps along the way to see.
so in my main script i have if [[ $1 == bash ]] which uses the first argument but then in my made script which has cat > $project/bash/$project << EOF
if [[ $1 == -help ]] etc the $1 in the second script becomes bash, if i use shift it is just blank
if [[ $1 == bash ]]
cat > $project/bash/$project << EOF !/bin/bash if [[ $1 == -help ]] then cat README.txt fi EOF
ln -syou suggested Dan, the new scripts can be run global as a command, but because I use a link, the README file cannot be found by the script as it thinks it runs on usr/local/bin ... Is there a workaround or should I add the location to the PATH instead?