return 1
}
git update-ref -d "refs/gcrypt/list-files"
+ else
# Could not fetch, or remote is empty.
# If checking, this might be fine, but for clean it's an issue if we expected files.
# Returning 1 is safer.
fi
: "${DESTDIR:=}"
-log() { printf "\033[1;36m[INSTALL] %s\033[0m\n" "$1"; }
verbose() { echo "$@" >&2 && "$@"; }
install_v() {
# We copy the installer (breaking symlink) and patch it to check a nonexistent path instead of /usr/local
rm -f "$INSTALLER"
-sed 's|/usr/local|/non/existent/path|g' "$REPO_ROOT/install.sh" > "$INSTALLER"
+sed 's|/usr/local|/non/existent/path|g' "$REPO_ROOT/install.sh" >"$INSTALLER"
chmod +x "$INSTALLER"
# Run with PREFIX set but explicit prefix unset
# Only generate if there are actual flags
COMMA_FLAGS=$(echo "$CLEAN_FLAGS_BASH" | tr ' ' ',')
if [ -n "$CLEAN_FLAGS_BASH" ]; then
- CLEAN_FLAGS_ZSH="'(${CLEAN_FLAGS_BASH})' {${COMMA_FLAGS}} '[flag]'"
+ # zsh _arguments requires format: '(exclusion)'{-f,--long}'[desc]' as ONE string (no spaces)
+ CLEAN_FLAGS_ZSH="'(${CLEAN_FLAGS_BASH})'{${COMMA_FLAGS}}'[flag]'"
else
CLEAN_FLAGS_ZSH=""
fi