mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-30 01:39:45 +03:00
rename "install" function to "install_packages" and
"upgrade" function to "upgrade_packages" to solve shellcheck lint errors
This commit is contained in:
parent
88987ab58f
commit
3b134022d5
|
@ -37,12 +37,12 @@ function list_packages(){
|
||||||
grep -v "#" "${OS_REQUIREMENTS_FILENAME}" | grep -v "^$";
|
grep -v "#" "${OS_REQUIREMENTS_FILENAME}" | grep -v "^$";
|
||||||
}
|
}
|
||||||
|
|
||||||
function install()
|
function install_packages()
|
||||||
{
|
{
|
||||||
list_packages | xargs apt-get --no-upgrade install -y;
|
list_packages | xargs apt-get --no-upgrade install -y;
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade()
|
function upgrade_packages()
|
||||||
{
|
{
|
||||||
list_packages | xargs apt-get install -y;
|
list_packages | xargs apt-get install -y;
|
||||||
}
|
}
|
||||||
|
@ -66,9 +66,9 @@ function install_or_upgrade()
|
||||||
|
|
||||||
# Install the basic compilation dependencies and other required libraries of this project
|
# Install the basic compilation dependencies and other required libraries of this project
|
||||||
if [ "$PARAN" == "install" ]; then
|
if [ "$PARAN" == "install" ]; then
|
||||||
install;
|
install_packages;
|
||||||
else
|
else
|
||||||
upgrade;
|
upgrade_packages;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# cleaning downloaded packages from apt-get cache
|
# cleaning downloaded packages from apt-get cache
|
||||||
|
|
Loading…
Reference in New Issue
Block a user