From 53fcd577e83b14685d80cc473bc008f8ccd0592d Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 12 Apr 2023 09:41:52 -0700 Subject: [PATCH] We no longer need to run sed --- mk-sbuild | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mk-sbuild b/mk-sbuild index aab252b..accd8d7 100755 --- a/mk-sbuild +++ b/mk-sbuild @@ -891,9 +891,7 @@ cat "$TEMP_SOURCES" | sed -e "s|RELEASE|$RELEASE|g" | \ sudo bash -c "cat > $MNT/etc/apt/sources.list" rm -f "$TEMP_SOURCES" if [ -n "$TEMP_PREFERENCES" ]; then - sed -e "s|RELEASE|$RELEASE|g" < "$TEMP_PREFERENCES" | \ - sudo bash -c "cat > $MNT/etc/apt/preferences.d/proposed.pref" - rm -f "$TEMP_PREFERENCES" + sudo mv "TEMP_PREFERENCES" $MNT/etc/apt/preferences.d/proposed.pref fi # Copy the timezone (comment this out if you want to leave the chroot at UTC)