Skip to content

Commit

Permalink
realify: Increase logging + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
techyminati authored Jul 7, 2024
1 parent 5ded6c6 commit 042a130
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
Expand Up @@ -47,7 +47,7 @@ check_realmeui_ver()
exit 1
fi
log "Detected realmeUI Version: ${RUI_VER}"
log "Target file: ${FEATURE_PATH}"
log "Target file: ${FEATURE_PATH} ${FEATURE@_PATH}"
}

prepare_feature_list()
Expand All @@ -56,12 +56,16 @@ prepare_feature_list()
if [[ -e "$FEATURE_PATH" || -e "$FEATURE2_PATH" ]]; then
if [[ -e "$FEATURE_PATH" ]]; then
cp $FEATURE_PATH $TEMP_PATH
log "Target File 1 Copied"
fi
if [[ -e "$FEATURE2_PATH" ]]; then
cp $FEATURE2_PATH $TEMP2_PATH
log "Target File 2 Copied"
else
log "${FEATURE2_PATH} not found"
fi
else
log "${FEATURE_PATH} or ${FEATURE2_PATH} do not exist, exiting!"
log "${FEATURE_PATH} does not exist, exiting!"
exit 1
fi
}
Expand Down Expand Up @@ -111,6 +115,8 @@ setup_mount()
# Now, bind mount the resulting file to the original location
log "Mounting ${TEMP_PATH} to ${FEATURE_PATH}"
mount --bind $TEMP_PATH $FEATURE_PATH
log "Mounting ${TEMP2_PATH} to ${FEATURE2_PATH}"
mount --bind $TEMP2_PATH $FEATURE2_PATH
}

# Run these in order
Expand Down

0 comments on commit 042a130

Please sign in to comment.