Skip to content

Commit 902cdb0

Browse files
authored
Homebrew-sync gh config backup fix (#29)
* fix gh config dir on travis * fix gh config bkup from failing full build
1 parent 39f1dbc commit 902cdb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sync-to-aws-homebrew-tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function restore_gh_config() {
9797
if [[ -n $(env | grep GITHUB_TOKEN) ]] && [[ -n "${GITHUB_TOKEN}" ]]; then
9898
trap restore_gh_config EXIT INT TERM ERR
9999
mkdir -p "${HOME}/.config/gh"
100-
cp -f "${GH_CLI_CONFIG_PATH}" "${GH_CLI_CONFIG_PATH}.bkup"
100+
cp -f "${GH_CLI_CONFIG_PATH}" "${GH_CLI_CONFIG_PATH}.bkup" || :
101101
cat << EOF > "${GH_CLI_CONFIG_PATH}"
102102
hosts:
103103
github.com:

0 commit comments

Comments
 (0)