From 32522d0e8803ac986354d6e3fbe0e66ad50dc2f5 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 18 Apr 2015 01:00:30 +0200 Subject: reproducible: maintenance: fix the cut(1) call in the removed packages part --- bin/reproducible_maintenance.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_maintenance.sh') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index a4362650..4e1014ba 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -196,9 +196,9 @@ if [ ! -z "$PACKAGES" ] ; then echo $PACKAGES echo for pkg in "$PACKAGES" ; do - PKGNAME=$(echo "$pkg" | cut -f '|' -d 1) - SUITE=$(echo "$pkg" | cut -f '|' -d 2) - ARCH=$(echo "$pkg" | cut -f '|' -d 3) + PKGNAME=$(echo "$pkg" | cut -d '|' -f 1) + SUITE=$(echo "$pkg" | cut -d '|' -f 2) + ARCH=$(echo "$pkg" | cut -d '|' -f 3) QUERY="DELETE FROM removed_packages WHERE name='$PKGNAME' AND suite='$SUITE' AND architecture='$ARCH'" sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY" -- cgit v1.2.3-70-g09d2