ignore comment-lines

This commit is contained in:
Jakobus Schürz 2020-11-10 16:16:09 +01:00
parent 5a70538f0b
commit 5ff7f25f0c

View file

@ -52,7 +52,7 @@ do
if stat "${file}" >/dev/null 2>/dev/null ; then
echo "Stop $app on ${DEST}"
ssh ${DEST} systemctl stop ${app}.service
cat ${file}|sort -r |while read cmd pkg version ; do
cat ${file}|sort -r |grep -v " *#"|while read cmd pkg version ; do
case $cmd in
install)
if [ -z "${version}" ]; then