From e829294c1fd377475948f2c4902e2684e962056f Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 14 Dec 2022 20:25:03 +0100 Subject: [PATCH] Add support for comments --- .installer/packages | 4 ++-- setup_system.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.installer/packages b/.installer/packages index beeb89b..79b7133 100644 --- a/.installer/packages +++ b/.installer/packages @@ -1,11 +1,11 @@ -pacman-base:acpi,wget,curl +pacman-base:acpi,wget,curl # Required for setup_system.sh pacman-any:i3-gaps,feh,i3status,network-manager-applet,pasystray,xautolock,inotify-tools,xss-lock,noto-fonts-emoji pacman-any:zsh,tmux,code,vim,ufw,scrot,dunst,arandr,ranger,thunar,flameshot pacman-any:gst-libav,phonon-qt5-gstreamer,gst-plugins-good,qt5-quickcontrols,qt5-graphicaleffects,qt5-multimedia pacman-laptop:brightnessctl aur-any:picom-git,sddm-theme-aerial-git -apt-base:acpi,wget,curl +apt-base:acpi,wget,curl # Required for setup_system.sh apt-any:i3,feh,i3status,nm-tray,pasystray,xautolock,inotify-tools,xss-lock,fonts-noto-color-emoji,fonts-hack-ttf,xclip apt-any:chromium-browser,zsh,tmux,codium,vim,ufw,scrot,dunst,arandr,ranger,thunar,flameshot apt-any:libxext-dev,libxcb1-dev,libxcb-damage0-dev,libxcb-xfixes0-dev,libxcb-shape0-dev,libxcb-render-util0-dev,libxcb-render0-dev,libxcb-randr0-dev,libxcb-composite0-dev,libxcb-image0-dev,libxcb-present-dev,libxcb-xinerama0-dev,libxcb-glx0-dev,libpixman-1-dev,libdbus-1-dev,libconfig-dev,libgl1-mesa-dev,libpcre2-dev,libpcre3-dev,libevdev-dev,uthash-dev,libev-dev,libx11-xcb-dev,meson diff --git a/setup_system.sh b/setup_system.sh index 1f0e444..3f535f5 100755 --- a/setup_system.sh +++ b/setup_system.sh @@ -63,7 +63,7 @@ function get_packages() { for package in ${row//,/ }; do echo "$package" done - done <<<"$(grep "^${target:?}:" "$pkg_file" | cut -d':' -f2)" + done <<<"$(grep "^${target:?}:" "$pkg_file" | cut -d: -f2 | cut -d# -f1)" done }