GCRYPT_TRACE=1 Enable shell tracing (set -x) for rsync/curl commands
GCRYPT_FULL_REPACK=1 Force full repack when pushing
+
Configuration
=============
(Legacy syntax ``--check`` is also supported).
-Exit status is 0 if the remote uses gcrypt and was decrypted successfully, 1 if it
+Exit status is 0
uses gcrypt but could not be decrypted, and 100 if the repo is not
encrypted with gcrypt (or could not be accessed).
# 2. Handle subcommands
case "${COMP_WORDS[1]}" in
clean)
- local remotes=$(git remote -v 2>/dev/null | grep 'gcrypt::' | awk '{print $1}' | sort -u || :)
+ local remotes=$(git remote -v 2>/dev/null | grep 'gcrypt::' | awk '{print $1}' | sort -u || :
COMPREPLY=($(compgen -W " $remotes" -- "$cur"))
return 0
;;
check)
- local remotes=$(git remote 2>/dev/null || :)
+ local remotes=$(git remote 2>/dev/null || :
COMPREPLY=($(compgen -W "$remotes" -- "$cur"))
return 0
;;
case $line[1] in
clean)
_arguments \
- {clean_flags_zsh} \
+ '()' {} '[flag]' \
'*:gcrypt URL: _alternative "remotes:gcrypt remote:($(git remote -v 2>/dev/null | grep "gcrypt::" | awk "{print \$1}" | sort -u))" "files:file:_files"'
;;
check)
EXPECTED_ID="unknown_OS"
fi
-if [[ $OUTPUT != *"(deb running on $EXPECTED_ID)"* ]]; then
+if [[ $OUTPUT != *"($EXPECTED_ID)"* ]]; then
print_err "ERROR: Distro ID '$EXPECTED_ID' missing from version string! (Got: $OUTPUT)"
exit 1
fi