From ad3f6faacf8931911e1de2b9f2ad7d913d8c37cd Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 30 Jun 2022 12:34:56 -0400 Subject: [PATCH] Get GitHub action script directory reference9 --- github_action_xcat_test.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github_action_xcat_test.pl b/github_action_xcat_test.pl index 79d3c04b8..efd98c123 100644 --- a/github_action_xcat_test.pl +++ b/github_action_xcat_test.pl @@ -327,7 +327,7 @@ sub build_xcat_core{ #-------------------------------------------------------- sub install_xcat{ - my @cmds = ("sudo cd ./../../xcat-core && sudo ./mklocalrepo.sh", + my @cmds = ("sudo ./mklocalrepo.sh", "sudo chmod 777 /etc/apt/sources.list", "sudo echo \"deb [arch=amd64 allow-insecure=yes] http://xcat.org/files/xcat/repos/apt/devel/xcat-dep bionic main\" >> /etc/apt/sources.list", "sudo echo \"deb [arch=ppc64el allow-insecure=yes] http://xcat.org/files/xcat/repos/apt/devel/xcat-dep bionic main\" >> /etc/apt/sources.list", @@ -335,9 +335,9 @@ sub install_xcat{ "sudo apt-get -qq --allow-insecure-repositories update"); my @output; chdir $ENV{RUNNER_WORKSPACE};; - print "[MG] getcwd()"; + print "[MG] getcwd(): "; print getcwd(); - print "[MG] system pwd"; + print "\n[MG] system pwd: "; system 'pwd'; foreach my $cmd (@cmds){