1
Fork 0

Add shebangs to script

This commit is contained in:
Matei Adriel 2024-01-18 02:27:38 +01:00
parent 53b582118a
commit de1bb3ef21
No known key found for this signature in database

View file

@ -1,3 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell ./devshells/bootstrap/shell.nix
#!nix shell disko
#!nix-shell -i bash
# Check if at least one argument is provided
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <disko-mode> [action]"
@ -16,10 +21,6 @@ if [ "$#" != "1" ] && [ "$2" != "install" ] && [ "$2" != "enter" ]; then
exit 1
fi
echo "Entering shells..."
exec nix-shell ./devshells/bootstrap/shell.nix
exec nix shell disko
echo "Mounting keys"
sudo mkdir /hermes
sudo mount /dev/disk/by-uuid/7FE7-CA68 /hermes