Skip to content

Commit

Permalink
Merge pull request #147456 from l0b0/de-lint-installer-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Nov 26, 2021
2 parents e23f671 + e0f1682 commit 8efe977
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! @runtimeShell@ -e
# shellcheck shell=bash

# Shows the usage of this command to the user

Expand Down Expand Up @@ -29,12 +30,12 @@ while [ $# -gt 0 ]; do
nixBuildArgs+=("--option" "$1" "$2"); shift
;;
*)
if [ ! -z "$networkExpr" ]; then
if [ -n "$networkExpr" ]; then
echo "Network expression already set!"
showUsage
exit 1
fi
networkExpr="$(readlink -f $1)"
networkExpr="$(readlink -f "$1")"
;;
esac

Expand All @@ -49,4 +50,4 @@ fi

# Build a network of VMs
nix-build '<nixpkgs/nixos/modules/installer/tools/nixos-build-vms/build-vms.nix>' \
--argstr networkExpr $networkExpr "${nixBuildArgs[@]}"
--argstr networkExpr "$networkExpr" "${nixBuildArgs[@]}"
1 change: 1 addition & 0 deletions nixos/modules/installer/tools/nixos-enter.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! @runtimeShell@
# shellcheck shell=bash

set -e

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/installer/tools/nixos-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! @runtimeShell@
# shellcheck shell=bash

set -e
shopt -s nullglob
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/installer/tools/nixos-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! @runtimeShell@
# shellcheck shell=bash

case "$1" in
-h|--help)
Expand Down

0 comments on commit 8efe977

Please sign in to comment.