2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-17 11:54:16 +00:00

Fix csh syntax error in /etc/profile.d/xcat.csh

The PERL5LIB conditional block added in commit 3cc4a39c8 used bash
if-then-fi syntax instead of csh if-then-endif syntax, causing
"Illegal variable name" errors for tcsh/csh users logging into
the xCAT manager node.

Fixes: #7379
This commit is contained in:
Vinícius Ferrão
2026-05-11 01:56:31 -03:00
parent 2623c6889b
commit 3f833fcabd
+2 -2
View File
@@ -343,9 +343,9 @@ endif
setenv PERL_BADLANG 0
# If /usr/local/share/perl5 is not already in @INC, add it to PERL5LIB
perl -e "print \"@INC\"" | grep -E "(^|\W)/usr/local/share/perl5($| )" > /dev/null
if [ \$? = 1 ]; then
if ( \$? == 1 ) then
setenv PERL5LIB /usr/local/share/perl5:\${PERL5LIB}
fi
endif
EOF
chmod 755 /etc/profile.d/xcat.*