You do either have to dot source or make the script into a module. One or the other. If you want to just run it as a script, remove the function keyword, function name, and opening and closing curly bracket. It’ll run the same as a script.
↧
You do either have to dot source or make the script into a module. One or the other. If you want to just run it as a script, remove the function keyword, function name, and opening and closing curly bracket. It’ll run the same as a script.