From 7cb1edd3b6b7c32fe399e1e915d3fa323f89911c Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Tue, 3 Feb 2026 16:38:56 +0100 Subject: [PATCH] fix: typos in ./debrepo --- debrepo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debrepo b/debrepo index 3a1a71c..e022a6e 100755 --- a/debrepo +++ b/debrepo @@ -48,10 +48,10 @@ if [ "$1" = "add" ] || [ "$1" = "-a" ] || [ "$1" = "--add" ]; then else # generate package file name and copy deb file PKG=$2 - PKG_ARCH=$(dpkg -i $PKG | grep "Architecture" | sed 's/ Architecture: //') + PKG_ARCH=$(dpkg -I $PKG | grep "Architecture" | sed 's/ Architecture: //') PKG_VERSION=$(dpkg -I $PKG | grep "Version" | sed 's/ Version: //') PKG_NAME=$(echo "$PKG" | sed 's/.*\///' | awk -F "_" '{print $1}') - PKG_FULLNAME="${$PKG_NAME}_${PKG_VERSION}_${PKG_ARCH}.deb" + PKG_FULLNAME="${PKG_NAME}_${PKG_VERSION}_${PKG_ARCH}.deb" cp $PKG "$REPODIR/apt-repo/pool/main/$PKG_FULNAME" fi