illwieckz

orbit apt-get set -x

Jul 19th, 2021 (edited)
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.12 KB | None | 0 0
  1. commit e471bc6911e5b95f7f27659b6a4d9544697137b8
  2. Author: Thomas Debesse <dev@illwieckz.net>
  3. Date:   Fri Oct 9 01:46:58 2020 +0200
  4.  
  5.     sudosetx
  6.  
  7. diff --git a/bootstrap-orbit.sh b/bootstrap-orbit.sh
  8. index 975c4dd3..c2ce6399 100755
  9. --- a/bootstrap-orbit.sh
  10. +++ b/bootstrap-orbit.sh
  11. @@ -29,16 +29,25 @@ readonly REQUIRED_PACKAGES=( build-essential libglu1-mesa-dev mesa-common-dev \
  12.                               libqt5websockets5-dev libxxf86vm-dev python3-pip )
  13.  
  14.  function add_ubuntu_universe_repo {
  15. -  sudo add-apt-repository universe
  16. -  if [ $? -ne 0 ]; then
  17. -    sudo apt-get install -y software-properties-common
  18. +  (
  19. +    set -x
  20.      sudo add-apt-repository universe
  21. +  )
  22. +  if [ $? -ne 0 ]; then
  23. +    (
  24. +      set -x
  25. +      sudo apt-get install -y software-properties-common
  26. +      sudo add-apt-repository universe
  27. +    )
  28.    fi
  29.  }
  30.  
  31.  function install_required_packages {
  32. -  sudo apt-get update || exit $?
  33. -  sudo apt-get install -y ${REQUIRED_PACKAGES[@]} || exit $?
  34. +  (
  35. +    set -x
  36. +    sudo apt-get update || exit $?
  37. +    sudo apt-get install -y ${REQUIRED_PACKAGES[@]} || exit $?
  38. +  ) || exit $?
  39.  }
  40.  
Add Comment
Please, Sign In to add comment