Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash if [ $# -lt 1 ] then echo "Project name needed" echo "Usage: $0
" echo "Example: $0 'MyGame'" exit 1 fi url="https://github.com/metalx1000/Phaser-Minimal-Setup/archive/master.zip" zip="/tmp/phaser.zip" dir="Phaser-Minimal-Setup-master" if [ -d "$dir" ]; then echo "$dir already exists." echo "Goodbye..." exit 1 fi if [ -d "$1" ]; then echo "Project $1 already exists." echo "Goodbye..." exit 1 fi echo "Downloading template..." wget "$url" -O "$zip"||exit 1 echo "Unzipping..." unzip "$zip" echo "Removing TMP files..." rm "$zip" echo "Renaming project folder to $1" mv "$dir" "$1" echo "" echo "" echo "You're project is in $1"
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)