diff options
| author | Guido Berhörster <guido+debian.org@berhoerster.name> | 2023-09-19 18:41:33 +0000 |
|---|---|---|
| committer | Mike Gabriel <sunweaver@debian.org> | 2023-09-19 18:41:43 +0000 |
| commit | f1bbf19e0cfff46409590a1482fc91dc50dba5e6 (patch) | |
| tree | b1ead752d272064494ee31e69609ed65556cfbf8 | |
| parent | 2d0a394b2680616fd726d9f6d3b4b5f8fe30ed33 (diff) | |
| download | debian-edu-fai+itzks-f1bbf19e0cfff46409590a1482fc91dc50dba5e6.tar.gz debian-edu-fai+itzks-f1bbf19e0cfff46409590a1482fc91dc50dba5e6.tar.bz2 debian-edu-fai+itzks-f1bbf19e0cfff46409590a1482fc91dc50dba5e6.zip | |
fai/config/class/40-parse-profiles.sh: Adjust OS_VERSION_MAJOR population.
| -rwxr-xr-x | fai/config/class/40-parse-profiles.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fai/config/class/40-parse-profiles.sh b/fai/config/class/40-parse-profiles.sh index 010b186..fd13f9b 100755 --- a/fai/config/class/40-parse-profiles.sh +++ b/fai/config/class/40-parse-profiles.sh @@ -121,7 +121,7 @@ prtresult() { OS_SUFFIX="" if [ -e "/etc/debian_version" ]; then OS_SUFFIX+="DEBIAN" - OS_VERSION_MAJOR=$(cat /etc/debian_version | head -n1 | cut -d"." -f1) + OS_VERSION_MAJOR="$(head -n1 /etc/debian_version | cut -d"." -f1)" OS_SUFFIX+="_${OS_VERSION_MAJOR}" fi |
