You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/personalize/run.sh

24 lines
811 B
Bash

#!/usr/bin/env sh
PERSONALIZE_PATH=${path}
# If the personalize script doesn't exist, educate
# the user how they can customize their environment!
if [ ! -f ${PERSONALIZE_PATH}/personalize.sh ]; then
echo "✨ You don't have a personalize script!"
echo "Run \`touch ${PERSONALIZE_PATH}\` to create one."
echo "Developers typically install their favorite packages here that may not be included in the base image."
exit 0
fi
# Check if the personalize script is executable, if not,
# try to make it executable and educate the user if it fails.
if [ ! -x ${PERSONALIZE_PATH}/personalize.sh ]; then
echo "🔐 Your personalize script isn't executable!"
echo "Run \`chmod +x ${PERSONALIZE_PATH}\` to make it executable."
exit 0
fi
# Run the personalize script!
exec $PERSONALIZE_PATH