home · contact · privacy
Fix scripts.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 14 Nov 2018 18:01:55 +0000 (19:01 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 14 Nov 2018 18:01:55 +0000 (19:01 +0100)
all_new_2018/install_for_target.sh
all_new_2018/purge_nonrequireds.sh

index 9d2e1a688c7fbbe8ab81aa5e1adcbea92824e840..d12c36eb6bd17aee6eca77f77f8877818e4cd82c 100755 (executable)
@@ -7,7 +7,8 @@ config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/"
 
 for target in "$@"; do
     path="${config_tree_prefix}${target}"
-    for line in $(cat "${path}"); do
+    #for line in $(cat "${path}"); do
+    cat "${path}" | while read line; do
         if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
             apt-get -y install "${line}"
         fi
index 34692dad5889d6e456a799e40179bde0dbfdab4b..993a7181f14b122ff6f2b4b79644a644b208a633 100755 (executable)
@@ -9,7 +9,8 @@ config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/"
 dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > /tmp/list_white_unsorted
 for target in "$@"; do
     path="${config_tree_prefix}${target}"
-    for line in $(cat "${path}"); do
+    #for line in $(cat "${path}"); do
+    cat "${path}" | while read line; do
         if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
             echo "${line}" >> /tmp/list_white_unsorted
         fi