Browse Source
Update _update
overwrite all files and folders
pull/9/head
Gorgone
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
support/functions/_update
|
|
@ -17,7 +17,7 @@ update_me(){ |
|
|
|
cd "$s3local"; |
|
|
|
echo -en " update all files ...\n\n"; |
|
|
|
yes | cp -rf ./s3 "$workdir/s3"; |
|
|
|
yes | cp -rf ./support/functions/* "$workdir/support/functions/"; |
|
|
|
yes | cp -rf ./support/* "$workdir/support"; |
|
|
|
else |
|
|
|
echo -en " is up to date\n Online Revision: $online_revision\n\n"; |
|
|
|
fi |
|
|
@ -52,7 +52,7 @@ fix_me(){ |
|
|
|
cd "$s3local"; |
|
|
|
echo -en " overwrite all files ...\n\n"; |
|
|
|
yes | cp -rf ./s3 "$workdir/s3"; |
|
|
|
yes | cp -rf ./support/functions/* "$workdir/support/functions/"; |
|
|
|
yes | cp -rf ./support/* "$workdir/support"; |
|
|
|
else |
|
|
|
update_me; |
|
|
|
fix_me; |
|
|
|