Corsinvest / cv4pve-barc

Backup And Restore Ceph for Proxmox VE
https://www.cv4pve-tools.com
GNU General Public License v3.0
82 stars 22 forks source link

Wrong option value for "tail" command #62

Closed fabry-68 closed 4 years ago

fabry-68 commented 4 years ago

Hello. In this function:

function map_vmids_to_host(){ for node in $(/usr/bin/pvecm nodes | tail +5 | tr -s ' ' | cut -d' ' -f 4) do for vm in $(ssh root@$node qm list|tail +2|tr -s ' '|cut -f 2 -d' ') do pvnode[$vm]=$node done done }

tail +5 gives an error The right syntax is "tail -n +5"