Discard changes to personalize/run.sh

pull/106/head
Muhammad Atif Ali 2 years ago committed by GitHub
parent 6e5d720a20
commit bb195a2ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,18 +9,18 @@ SCRIPT="$${SCRIPT/#\~/$${HOME}}"
# If the personalize script doesn't exist, educate # If the personalize script doesn't exist, educate
# the user how they can customize their environment! # the user how they can customize their environment!
if [ ! -f $SCRIPT ]; then if [ ! -f $SCRIPT ]; then
printf "$${BOLD}You don't have a personalize script!\n\n" printf "$${BOLD}You don't have a personalize script!\n\n"
printf "Run $${CODE}touch $${SCRIPT} && chmod +x $${SCRIPT}$${RESET} to create one.\n" printf "Run $${CODE}touch $${SCRIPT} && chmod +x $${SCRIPT}$${RESET} to create one.\n"
printf "It will run every time your workspace starts. Use it to install personal packages!\n\n" printf "It will run every time your workspace starts. Use it to install personal packages!\n\n"
exit 0 exit 0
fi fi
# Check if the personalize script is executable, if not, # Check if the personalize script is executable, if not,
# try to make it executable and educate the user if it fails. # try to make it executable and educate the user if it fails.
if [ ! -x $SCRIPT ]; then if [ ! -x $SCRIPT ]; then
echo "🔐 Your personalize script isn't executable!" echo "🔐 Your personalize script isn't executable!"
printf "Run $CODE\`chmod +x $SCRIPT\`$RESET to make it executable.\n" printf "Run $CODE\`chmod +x $SCRIPT\`$RESET to make it executable.\n"
exit 0 exit 0
fi fi
# Run the personalize script! # Run the personalize script!

Loading…
Cancel
Save