#!/usr/bin/env bash # Update solus infra repo and get to oct directory # Used when emailing OC backers function update_repos() { printf "[INFO] Updating the Solus package repo\n" gotosoluspkgs git stash git switch main git fetch && git pull printf "[INFO] Updating the Solus infrastructure-tooling repo \n" cd ../infrastructure-tooling git switch master git fetch && git pull printf "[INFO] Switching to the oct directory\n" cd oct exec bash } source ~/.bashrc.d/solus-monorepo-helpers.sh update_repos