Skip to content
Snippets Groups Projects
Commit c93e90a0 authored by nimrod's avatar nimrod
Browse files

- Replaced update-requirements shell function that commits to Git with a

simpler shell alias to just update the requirements files without any
Git.
parent bf3ae7fb
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ alias docker-build='docker build -t "$(basename $PWD)" ./'
alias cdtemp='cd $(mktemp -d)'
alias 0-day-cleanup='ssh xbmc.shore.co.il "sudo -u debian-transmission find /srv/library/Comics -name *.part -path *0-Day\ Week\ of* -delete"'
alias httpbin='tox -c $HOME/.tox.ini.httpbin --'
alias update-requirements='find -name "*requirements*.txt" -exec pur --requirement {} \;'
deduce-aws-region () {
AWS_DEFAULT_REGION="$(curl --silent \
......@@ -116,20 +117,5 @@ sync-comics () {
rsync --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/"
}
update-requirements () {
reporoot="$(git rev-parse --show-toplevel) || (echo Failed to find Git repo.
&& return 1)"
# shellcheck disable=SC2164
cd "$reporoot"
for file in $(git ls-files "*requirements*.txt")
do
pur --requirement "$file"
git add "$file"
done
git commit -m"- Updated requirements."
# shellcheck disable=SC2164
cd - > /dev/null
}
# shellcheck disable=SC1090
. "$HOME/Documents/Shore/bundle_certs/bundle_certs"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment