fix(justfiles): Log message about grep not finding 60-custom.just

This commit is contained in:
fiftydinar 2025-03-10 10:57:29 +01:00 committed by GitHub
parent e66445df32
commit bbb90bbfe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,13 +71,17 @@ for SELECTED in "${CONFIG_SELECTION[@]}"; do
IMPORT_LINE="import \"${DEST_FOLDER}/${JUSTFILE}\"" IMPORT_LINE="import \"${DEST_FOLDER}/${JUSTFILE}\""
# Skip the import line if it already exists, else append it to import file # Skip the import line if it already exists, else append it to import file
if grep -wq "${IMPORT_LINE}" "${IMPORT_FILE}"; then if [[ -f "${IMPORT_FILE}" ]]; then
echo "- Skipped: '${IMPORT_LINE}' (already present)" if grep -wq "${IMPORT_LINE}" "${IMPORT_FILE}"; then
else echo "- Skipped: '${IMPORT_LINE}' (already present)"
echo "${IMPORT_LINE}" >> "${IMPORT_FILE}" else
echo "${IMPORT_LINE}" >> "${IMPORT_FILE}"
echo "- Added: '${IMPORT_LINE}'"
fi
else
echo "${IMPORT_LINE}" > "${IMPORT_FILE}"
echo "- Added: '${IMPORT_LINE}'" echo "- Added: '${IMPORT_LINE}'"
fi fi
done done
done done