echo 'Applying patches from $_startdir if they exist...'
This is not going to print $_startdir
value. Either replace single quotes by double quotes or concatenate the variable value between the literal string 'Applying patches from '"$_startdir"' if they exist...'
patch -p1 -s -i "$patch"
This is not going to apply any patch, you need to pass the path where the source code is patch -d "$_sourcedir" -p1 -s -i "$patch"
Pinned Comments