mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 09:01:34 -05:00
Add set -u
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
4b7a2682bd
commit
2dec8b859f
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# Make sure secureboot is in setup mode before running this
|
# Make sure secureboot is in setup mode before running this
|
||||||
|
|
||||||
set -e
|
set -eu
|
||||||
|
|
||||||
# Secure boot enrollment
|
# Secure boot enrollment
|
||||||
sudo sbctl enroll-keys
|
sudo sbctl enroll-keys
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
# License for the specific language governing permissions and limitations under
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
|
set -u
|
||||||
|
|
||||||
output(){
|
output(){
|
||||||
printf '\e[1;34m%-6s\e[m\n' "${@}"
|
printf '\e[1;34m%-6s\e[m\n' "${@}"
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations under
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
set -e
|
set -eu
|
||||||
|
|
||||||
# Install new grub version
|
# Install new grub version
|
||||||
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
||||||
|
Loading…
Reference in New Issue
Block a user