Ports: Don't throw error if _installed_ does not exist

This was annoying and I got multiple people reporting it as a possible
bug.
This commit is contained in:
Bananymous 2024-06-18 13:16:09 +03:00
parent c69919738b
commit 526d4369ce
1 changed files with 5 additions and 4 deletions

View File

@ -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