From 526d4369ceda4ceae296f2a1dfd2b501bf29f07a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 18 Jun 2024 13:16:09 +0300 Subject: [PATCH] Ports: Don't throw error if _installed_ does not exist This was annoying and I got multiple people reporting it as a possible bug. --- ports/build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ports/build.sh b/ports/build.sh index 0bbe1155..e9e4659f 100755 --- a/ports/build.sh +++ b/ports/build.sh @@ -1,10 +1,11 @@ #!/bin/bash -CURRENT_DIR=$(dirname $(realpath $0)) -pushd "$CURRENT_DIR" >/dev/null +cd $(dirname $(realpath $0)) + +if [ ! -f installed ]; then + exit 0 +fi while read port; do ${port}/build.sh done < installed - -popd >/dev/null