Skip to content

Commit

Permalink
Add more specifically comment
Browse files Browse the repository at this point in the history
And fixed bug for the destination archive path
  • Loading branch information
pH-7 committed Oct 15, 2016
1 parent 1f0c047 commit 5434349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _tools/deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##
# Title: Deployment Automation
# Description: pH7CMS Deployment Automation. It is used to clean the script before distribution to customers.
# To work correctly, you have to execute this script when you're in the root of the project in your terminal
# To work correctly, you have to execute this script when you're in the project root with your terminal (generally the parent folder of "_tools/").
# (e.g., you@you:/path/to/root-project$ bash _tools/pH7.sh).
# Author: Pierre-Henry Soria <ph7software@gmail.com>
# Copyright: (c) 2014-2016, Pierre-Henry Soria. All Rights Reserved.
Expand Down
6 changes: 3 additions & 3 deletions _tools/pH7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

##
# Title: Useful Unix functions
# Description: To work correctly, you have to execute this script when you're in the root of the project in your terminal
# Description: To work correctly, you have to execute this script when you're in the project root with your terminal (generally the parent folder of "_tools/").
# (e.g., you@you:/path/to/root-project$ bash _tools/pH7.sh).
#
# Author: Pierre-Henry Soria <ph7software@gmail.com>
Expand Down Expand Up @@ -152,7 +152,7 @@ function file-strict-permissions() {

# Backup. Create a compressed archive of the project
function backup() {
echo "Specify the path ending with a SLASH where you want the archive will be stored"
echo "Specify the full path ending with a SLASH where you want the archive will be stored"
read path
if [ ! -d $path ]; then
echo "The path is not a valid directory."
Expand All @@ -169,7 +169,7 @@ function backup() {
exit 2
fi
fi
tar -jcvf $full_path ../
tar -jcvf $full_path .
echo "Backup project successfully created into: $full_path"
}

Expand Down

0 comments on commit 5434349

Please sign in to comment.