Fmp: Add shfmt.
This commit is contained in:
parent
6817451032
commit
4bcedc1a2e
|
@ -14,3 +14,8 @@ excludes = [
|
||||||
command = "nixfmt"
|
command = "nixfmt"
|
||||||
options = [ "-s" ]
|
options = [ "-s" ]
|
||||||
includes = [ "*.nix" ]
|
includes = [ "*.nix" ]
|
||||||
|
|
||||||
|
[formatter.shfmt]
|
||||||
|
command = "shfmt"
|
||||||
|
options = [ "-s", "-w" ]
|
||||||
|
includes = [ "*.sh" ]
|
||||||
|
|
|
@ -6,7 +6,7 @@ cfg="$(realpath .)"
|
||||||
target="${1}"
|
target="${1}"
|
||||||
host="${2}"
|
host="${2}"
|
||||||
|
|
||||||
if [[ "${target}" = "" ]]; then
|
if [[ ${target} == "" ]]; then
|
||||||
printf "Usage: ./.Bootstrap.sh <DRIVE> [HOST]\n"
|
printf "Usage: ./.Bootstrap.sh <DRIVE> [HOST]\n"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
@ -33,7 +33,7 @@ nixos-generate-config --root /mnt
|
||||||
|
|
||||||
# Install.
|
# Install.
|
||||||
cd /mnt
|
cd /mnt
|
||||||
if [[ "${host}" = "" ]]; then
|
if [[ ${host} == "" ]]; then
|
||||||
printf "Warning: Installing basic system.\n"
|
printf "Warning: Installing basic system.\n"
|
||||||
nixos-install
|
nixos-install
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue