Add documentation 🤯
Say whaaaaat?
This commit is contained in:
parent
25011a3353
commit
c9156044f8
9 changed files with 45 additions and 6 deletions
|
@ -8,13 +8,14 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||
# Parse arguments
|
||||
function help {
|
||||
echo "Usage: $0 [-h|-e] profile"
|
||||
echo "Install NixOS on a device."
|
||||
echo
|
||||
echo "Arguments:"
|
||||
echo " profile: OS/disk profile to use"
|
||||
echo
|
||||
echo "Options:"
|
||||
echo " -h: Display this help message."
|
||||
echo " -e: Erase the disk. This can be used in case the wanted partition scheme doesn't match."
|
||||
echo " -e: Erase the disk. For cases where the partition scheme doesn't match the existing one."
|
||||
}
|
||||
|
||||
disko_mode=mount
|
||||
|
@ -49,7 +50,7 @@ then
|
|||
echo "Profile not found."
|
||||
fi
|
||||
|
||||
disko_config="${profile_dir}/disko.nix"
|
||||
disko_config="${profile_dir}/dk.nix"
|
||||
if [ ! -f "$disko_config" ]
|
||||
then
|
||||
echo "Disk configuration not found."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue