projects
/
drupal-init-tools.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad4bc7f
)
new.sh: avoid multiple redirects when creating .gitignore
author
Antonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:07:37 +0000
(16:07 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:07:37 +0000
(16:07 +0100)
libexec/new.sh
patch
|
blob
|
history
diff --git
a/libexec/new.sh
b/libexec/new.sh
index
2064c89
..
0259f4e
100755
(executable)
--- a/
libexec/new.sh
+++ b/
libexec/new.sh
@@
-64,9
+64,6
@@
pushd "$DESTDIR"
git remote rename origin upstream
git checkout -b master
git remote rename origin upstream
git checkout -b master
-echo >> .gitignore
-echo "# Ignore the configuration for the bootstrap script" >> .gitignore
-echo "bootstrap.conf" >> .gitignore
# Add some patches, use sed until composer can do that from the command line
# (e.g. composer config ...)
# Add some patches, use sed until composer can do that from the command line
# (e.g. composer config ...)
@@
-114,6
+111,11
@@
cat > bootstrap.conf <<EOF
#MYSQL_ROOT_PASSWORD="password"
EOF
#MYSQL_ROOT_PASSWORD="password"
EOF
+cat > .gitignore <<EOF
+# Ignore the configuration for the bootstrap script
+bootstrap.conf
+EOF
+
echo
echo "Uncomment and customize the values in the bootstrap.conf file."
echo
echo "Uncomment and customize the values in the bootstrap.conf file."