This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -u | |
# https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced#28776166 | |
sourced=0 | |
if [ -n "${ZSH_EVAL_CONTEXT-}" ]; then | |
case $ZSH_EVAL_CONTEXT in *:file) sourced=1;; esac; | |
elif [ -n "${KSH_VERSION-}" ]; then | |
if [ "$(cd "$(dirname -- "$0")" && pwd -P)/$(basename -- "$0")" != "$(cd "$(dirname -- "${.sh.file}")" && pwd -P)/$(basename -- "${.sh.file}")" ]; then | |
sourced=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#################################################################################################### | |
# | |
# FIX GRUB FOR ENCRYPTED INSTALLATION | |
# | |
# This script is based on the Troubleshooting part of the Manual Full System Encryption for Ubuntu. | |
# See https://help.ubuntu.com/community/ManualFullSystemEncryption/Troubleshooting | |
# | |
# This is NOT AN OFFICIAL Ubuntu script, it can and will break your system. Use at own risk. |