Skip to content

Commit a89efe2

Browse files
authored
Merge pull request #3 from secondlife/signal/fix-deb-rm
Fix cleanup of deb sources on older debian versions
2 parents 804d05c + ec8bcf2 commit a89efe2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

with-cloudsmith

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ function setup_deb {
357357
}
358358

359359
function teardown_deb {
360-
rm "$ROOT/etc/apt/auth.conf.d/$CLOUDSMITH_ORG-$CLOUDSMITH_REPO.conf"
361-
rm "$ROOT/etc/apt/keyrings/$CLOUDSMITH_ORG-$CLOUDSMITH_REPO.gpg"
362-
rm "$ROOT/etc/apt/sources.list.d/$CLOUDSMITH_ORG-$CLOUDSMITH_REPO.list"
360+
rm -rf "$ROOT/etc/apt/auth.conf.d/$CLOUDSMITH_ORG-$CLOUDSMITH_REPO.conf"
361+
rm -rf "$ROOT/etc/apt/keyrings/$CLOUDSMITH_ORG-$CLOUDSMITH_REPO.gpg"
362+
rm -rf "$ROOT/etc/apt/sources.list.d/$CLOUDSMITH_ORG-$CLOUDSMITH_REPO.list"
363363
}
364364

365365
################################
@@ -384,7 +384,7 @@ function teardown_pip {
384384
mv "$ROOT/etc/pip.conf.bak" "$ROOT/etc/pip.conf"
385385
return
386386
fi
387-
rm "$ROOT/etc/pip.conf"
387+
rm -rf "$ROOT/etc/pip.conf"
388388
}
389389

390390
################################

0 commit comments

Comments
 (0)