Skip to content

Commit

Permalink
realify: Exit if feature list cannot be found
Browse files Browse the repository at this point in the history
* Issue #2 indirectly exposed an issue where the script
  does not exit when failing to find the feature list,
  resulting in /cache/feature.xml not being present and
  /cache/realify.log not pointing to any issues.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
bengris32 committed Nov 27, 2022
1 parent adbb147 commit d6eaa06
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -41,8 +41,14 @@ check_realmeui_ver()

prepare_feature_list()
{
# Start by copying for modification
cp $FEATURE_PATH $TEMP_PATH
# Check if the file exists
if [[ -e "$FEATURE_PATH" ]]; then
# Start by copying for modification
cp $FEATURE_PATH $TEMP_PATH
else
log "${FEATURE_PATH} does not exist, exiting!"
exit 1
fi
}

remove_lowend_features()

0 comments on commit d6eaa06

Please sign in to comment.