Parcourir la source

Update update-lxcs.sh

tweak
tteckster il y a 2 ans
Parent
commit
485444b07d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      misc/update-lxcs.sh

+ 1 - 1
misc/update-lxcs.sh

@@ -49,7 +49,7 @@ function update_container() {
   esac
   esac
 }
 }
 header_info
 header_info
-for container in $(pct list | tail -n +2 | cut -f1 -d' '); do
+for container in $(pct list | awk '{if(NR>1) print $1}'); do
   excluded=false
   excluded=false
   for excluded_container in "${excluded_containers[@]}"; do
   for excluded_container in "${excluded_containers[@]}"; do
     if [ "$container" == "$excluded_container" ]; then
     if [ "$container" == "$excluded_container" ]; then