Skip to content

Commit

Permalink
feat: remove DEFAULT_GETBINPKG flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DakEnviy committed Mar 9, 2024
1 parent 659129f commit f9f17f5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Some useful scripts for gentoo.
## Global settings

- `AUTO_SUDO` - runs scripts as sudo automatically (default: `0`)
- `DEFAULT_GETBINPKG` - adds `--getbinpkg` flag to `emerge` command (default: `0`)

## Install

Expand Down
5 changes: 0 additions & 5 deletions scripts/enewyear
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# See LICENSE for copyright information

AUTO_SUDO=0
DEFAULT_GETBINPKG=0

if [[ "$EUID" -ne 0 ]]; then
if [[ "$AUTO_SUDO" -eq 1 ]]; then
Expand All @@ -22,8 +21,4 @@ fi

flags=("--ask" "--verbose" "--quiet" "--emptytree" "--with-bdeps=y" "--keep-going=y" "--backtrack=30")

if [[ "$DEFAULT_GETBINPKG" -eq 1 ]]; then
flags+=("--getbinpkg")
fi

emerge "${flags[@]}" @world
5 changes: 0 additions & 5 deletions scripts/eupd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# See LICENSE for copyright information

AUTO_SUDO=0
DEFAULT_GETBINPKG=0

COMMON_UPDATE_FLAGS=("--update" "--newuse" "--deep" "--with-bdeps=y" "--keep-going=y" "--autounmask" "--autounmask-write")
DEFAULT_UPDATE_FLAGS=("--ask" "--verbose" "--quiet")
Expand All @@ -18,10 +17,6 @@ DEFAULT_SYNC_FLAGS=("--quiet")
COMMON_DEPCLEAN_FLAGS=("--depclean")
DEFAULT_DEPCLEAN_FLAGS=("--ask" "--quiet")

if [[ "$DEFAULT_GETBINPKG" -eq 1 ]]; then
DEFAULT_UPDATE_FLAGS+=("--getbinpkg")
fi

if [[ "$EUID" -ne 0 ]]; then
if [[ "$AUTO_SUDO" -eq 1 ]]; then
sudo "$0" "$@"
Expand Down

0 comments on commit f9f17f5

Please sign in to comment.