Skip to content

Commit

Permalink
dependency: upgrade to use production branches (#77) (#78)
Browse files Browse the repository at this point in the history
* chore: update docker-compose command to docker compose (#75)

* dependency: upgrade to use production branches (#77)

* chore: update docker-compose command to docker compose (#75) (#76)

* dependency: upgrade to use production branches
  • Loading branch information
cmbengue-ec-intl authored Jul 16, 2024
1 parent 27021bc commit 0e1ea74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ export SDIR=\$(pwd)
# Add dotfiles bin directory to PATH
export PATH="\${HOME}/dotfiles/bin:\${PATH}"
# Add functions
[ -d "\${HOME}/bash-src/src" ] && cd "\${HOME}/bash-src/src" && git switch main &> /dev/null && git pull &> /dev/null && {
[ -d "\${HOME}/bash-src/src" ] && cd "\${HOME}/bash-src/src" && git checkout production &> /dev/null && git pull &> /dev/null && {
for file in *; do
source "\$BASHSRCPATH""src/\$file"
done
}
[ -d "\${HOME}/awk-src/scripts" ] && cd "\${HOME}/awk-src/" && git switch main &> /dev/null && git pull &> /dev/null
cd "\${HOME}/dotfiles/" && git switch main &> /dev/null && git pull &> /dev/null && cd "\$SDIR"
[ -d "\${HOME}/awk-src/scripts" ] && cd "\${HOME}/awk-src/" && git checkout production &> /dev/null && git pull &> /dev/null
cd "\${HOME}/dotfiles/" && git checkout production &> /dev/null && git pull &> /dev/null && cd "\$SDIR"
# Dotfile installation end
EOF
}
git pull origin main &> /dev/null
git checkout production && git pull &> /dev/null
. "./src/bash/functions"
imsg "Installing ${1}..."
update_rc_file "$1"
Expand Down
2 changes: 1 addition & 1 deletion update
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ "$ident" -eq 0 ]; then
fi

# Update dotfiles
git pull origin main
git checkout production && git pull

# Remove dotfiles from rc file
if [ "$1" == "zsh" ]; then
Expand Down

0 comments on commit 0e1ea74

Please sign in to comment.