Browse Source

add --tarballformat parameter

master
belliash 7 years ago
parent
commit
66c370f87e
2 changed files with 9 additions and 0 deletions
  1. 8
    0
      ezsync
  2. 1
    0
      libraries/common

+ 8
- 0
ezsync View File

@@ -60,6 +60,14 @@ until [[ -z "${1}" ]]; do
60 60
 		-t|--notrigger)
61 61
 			EZOPT_NOTRIGGER=true
62 62
 			;;
63
+		-T|--tarballformat)
64
+			shift
65
+			if [ -z ${1} ]; then
66
+				die "--tarballformat requires an additional argument!"
67
+			else
68
+				TARBALLFORMAT="${1}"
69
+			fi
70
+			;;
63 71
 		*)
64 72
 			die "Unrecognized option ${1}"
65 73
 			;;

+ 1
- 0
libraries/common View File

@@ -425,6 +425,7 @@ function showEzsyncUsage() {
425 425
 	echo -e "  -P\t--purgeonly\tclears temporary folder and exits"
426 426
 	echo -e "  -s\t--syscheck\tperforms prerequisites check only"
427 427
 	echo -e "  -t\t--notrigger\tdisables all build triggers and modules"
428
+	echo -e "  -T\t--tarballformat\toverrides default compression algorithm"
428 429
 	echo -e "\nEXAMPLES:"
429 430
 	echo -e "   ezsync -c -n mainline"
430 431
 	echo -e "   ezsync -n mainline -n my_repo1"

Loading…
Cancel
Save