Revision d4221f52
Added by Julien Enselme almost 10 years ago
bin/d7-create-site.sh | ||
---|---|---|
6 | 6 |
|
7 | 7 |
help="# ARGS: site_name site_mail admin_password [--no-init-database]" |
8 | 8 |
|
9 |
check_arguments $# 3 "$help" |
|
10 |
|
|
9 | 11 |
# Check if site already exists. |
10 | 12 |
if site_exists $d7_site_name ; then |
11 | 13 |
exit 1 |
... | ... | |
17 | 19 |
fi |
18 | 20 |
|
19 | 21 |
######## Exceptions |
20 |
check_arguments $# 3 "$help" |
|
21 |
|
|
22 | 22 |
echo "Checking if work tree is clean (may take a while)" |
23 | 23 |
if ! work_tree_clean ; then |
24 | 24 |
echo "Your work tree is not clean. Solve this before $0 can continue." |
Also available in: Unified diff
Check the number of arguments (and print in needed) before anythin.