Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
less sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise committed Sep 3, 2021
1 parent 1029af0 commit f866f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ if [ -n "$files" ]; then
root_password="alpine"
fi

if [ -z "$no_apt_update" ]; then
if [ -z "$no_apt_update" ]; thena
if [ -z "$silent_run" ]; then echo "Updating Sources..."; fi
echo "$root_password" | sudo -S apt-get update --allow-insecure-repositories &>/dev/null
Verbose "Successfully Refreshed Sources" "Couldn't Refresh Sources"
Expand All @@ -776,7 +776,7 @@ if [ -n "$files" ]; then
rcount=1

mkdir -p "$dir/$tweakid/DEBs"
apt_packages+=( "$i" $(echo "$root_password" | sudo -S apt-cache depends "$i" | grep ': ' | cut -d: -f2 | xargs) )
apt_packages+=( "$i" $(apt-cache depends "$i" | grep ': ' | cut -d: -f2 | xargs) )

# DEPENDENCY MANAGEMENT
until [ "${apt_packages[*]}" == "${apt_packages_old[*]}" ]; do
Expand Down Expand Up @@ -805,7 +805,7 @@ if [ -n "$files" ]; then
# CHECKING FOR UNSATISFIED DEPENDENCIES
while read -r g; do
tmp="$(dpkg -f "$g" Package)"
apt_packages+=( $(echo "$root_password" | sudo -S apt-cache depends "$tmp" | grep ': ' | cut -d: -f2 | xargs) )
apt_packages+=( $(apt-cache depends "$tmp" | grep ': ' | cut -d: -f2 | xargs) )
imported_debs+=( "$tmp" )
echo "$root_password" | sudo -S mv "$g" "$dir/$tweakid/DEBs"
done < <(find "/var/cache/apt/archives" -maxdepth 1 -iname '*.deb')
Expand Down

0 comments on commit f866f40

Please sign in to comment.