Skip to content

Commit 0ff8613

Browse files
committed
fix(scripts): update probe.sh and test-vm.sh for improved functionality
Modified `probe.sh` to include shellcheck directives for better linting and added a source command for OS release information. Removed the hardcoded VM name in `test-vm.sh` to allow for more flexible VM configuration. These changes enhance script reliability and maintainability.
1 parent 66775e0 commit 0ff8613

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/probe.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ set -e
77
set +o pipefail
88

99
# Colors for output
10+
# shellcheck disable=SC2034 # RED and YELLOW reserved for future use
1011
RED='\033[0;31m'
1112
GREEN='\033[0;32m'
13+
# shellcheck disable=SC2034 # YELLOW reserved for future use
1214
YELLOW='\033[1;33m'
1315
BLUE='\033[0;34m'
1416
CYAN='\033[0;36m'
@@ -47,6 +49,7 @@ main() {
4749

4850
if [ -f /etc/os-release ]; then
4951
print_section "OS Distribution"
52+
# shellcheck source=/dev/null
5053
. /etc/os-release || true
5154
echo -e " ${BOLD}Name:${NC} ${NAME:-N/A}"
5255
echo -e " ${BOLD}Version:${NC} ${VERSION_ID:-N/A}"

scripts/test-vm.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
set -euo pipefail
55

66
CONFIG_PATH="$(pwd)"
7-
VM_NAME="nixos-vm"
87

98
echo "Building NixOS VM..."
109

0 commit comments

Comments
 (0)