aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-04 15:36:16 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-04 15:36:16 -0400
commit6ea52b1f911f85c5504f211c0b30ebdeef3e8669 (patch)
tree8f7eeede3ce26a9523b9df42d9e064c0fe835932 /sbopkglint
parent82e8f411962242cacce0a17ecaa97d6c64f4c201 (diff)
downloadsbo-maintainer-tools-6ea52b1f911f85c5504f211c0b30ebdeef3e8669.tar.gz
Fix multiple package args without absolute path
Diffstat (limited to 'sbopkglint')
-rwxr-xr-xsbopkglint3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbopkglint b/sbopkglint
index c7f88f7..9b3a95a 100755
--- a/sbopkglint
+++ b/sbopkglint
@@ -449,6 +449,7 @@ for package in $packages; do
echo "OK"
rm -f $PKG/.tmp.$$
+ olddir="$( pwd )"
cd "$PKG"
totalwarns=0
@@ -473,6 +474,8 @@ for package in $packages; do
rm -f .tmp.warncount
done
+ cd "$olddir"
+
[ "$KEEP" = "" ] && rm -rf "$PKG"
if [ "$foundtests" = "0" ]; then