Skip to content

Commit

Permalink
Merge pull request EOSIO#6287 from EOSIO/removing_sudo_yum_info
Browse files Browse the repository at this point in the history
sudo removed from yum info (manually tested on centos 7 VM)
  • Loading branch information
heifner authored Nov 16, 2018
2 parents fdd1c2d + 3509b93 commit 810562b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/eosio_build_amazon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

for (( i=0; i<${#DEP_ARRAY[@]}; i++ ));
do
pkg=$( sudo "$YUM" info "${DEP_ARRAY[$i]}" 2>/dev/null | grep Repo | tr -s ' ' | cut -d: -f2 | sed 's/ //g' )
pkg=$("$YUM" info "${DEP_ARRAY[$i]}" 2>/dev/null | grep Repo | tr -s ' ' | cut -d: -f2 | sed 's/ //g' )

if [ "$pkg" != "installed" ]; then
DEP=$DEP" ${DEP_ARRAY[$i]} "
Expand Down
2 changes: 1 addition & 1 deletion scripts/eosio_build_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

for (( i=0; i<${#DEP_ARRAY[@]}; i++ ));
do
pkg=$( sudo "${YUM}" info "${DEP_ARRAY[$i]}" 2>/dev/null | grep Repo | tr -s ' ' | cut -d: -f2 | sed 's/ //g' )
pkg=$( "${YUM}" info "${DEP_ARRAY[$i]}" 2>/dev/null | grep Repo | tr -s ' ' | cut -d: -f2 | sed 's/ //g' )
if [ "$pkg" != "installed" ]; then
DEP=$DEP" ${DEP_ARRAY[$i]} "
DISPLAY="${DISPLAY}${COUNT}. ${DEP_ARRAY[$i]}\\n\\t"
Expand Down
2 changes: 1 addition & 1 deletion scripts/eosio_build_fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

for (( i=0; i<${#DEP_ARRAY[@]}; i++ ));
do
pkg=$( sudo "${YUM}" info "${DEP_ARRAY[$i]}" 2>/dev/null | grep Repo | tr -s ' ' | cut -d: -f2 | sed 's/ //g' )
pkg=$( "${YUM}" info "${DEP_ARRAY[$i]}" 2>/dev/null | grep Repo | tr -s ' ' | cut -d: -f2 | sed 's/ //g' )

if [ "$pkg" != "@System" ]; then
DEP=$DEP" ${DEP_ARRAY[$i]} "
Expand Down

0 comments on commit 810562b

Please sign in to comment.