Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43153fb

Browse files
richhlmblaschke
authored andcommitted
modified create project to take into account app dir existance (#58)
1 parent 919715a commit 43153fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎bin/create-project.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ if [ "$#" -lt 1 ]; then
1212
exit 1
1313
fi
1414

15+
#if app dir exists then backup it with timestamp
16+
[ ! -d "$CODE_DIR" ] || mv "$CODE_DIR" "$CODE_DIR".$(date +%Y%m%d%H%M%S);
17+
1518
mkdir -p -- "$CODE_DIR/"
1619
chmod 777 "$CODE_DIR/"
1720

@@ -39,4 +42,4 @@ case "1ドル" in
3942
;;
4043
esac
4144

42-
touch -- "$CODE_DIR/.gitkeep"
45+
touch -- "$CODE_DIR/.gitkeep"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /