Skip to content

Instantly share code, notes, and snippets.

@Dragod
Created April 27, 2021 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragod/618cedfc689c28c21c9e03208b720906 to your computer and use it in GitHub Desktop.
Save Dragod/618cedfc689c28c21c9e03208b720906 to your computer and use it in GitHub Desktop.
Create build.js from bash script
#!/bin/bash
FILE=build.js
if test -f "$FILE"; then
printf "\r\n$FILE already exists, start use node build with \"node build --cmd\"\n"
else
echo "let build = require('sd-unity-build');" > build.js
printf "\r\nbuild.js created, start use node build with \"node build --cmd\"\n"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment