]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
livepatch-build-tools: fix misuse of script directory as work directory
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 13 Dec 2023 13:51:47 +0000 (14:51 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 13 Dec 2023 16:07:46 +0000 (16:07 +0000)
commit1b5b03b3ce4187ce99bad580fd0ee36c6337313f
tree91deac9e19fc25c1088958778f15ae73afd3ed10
parent0ed8ef88dc300750696a64e89efa3b82502f6dc7
livepatch-build-tools: fix misuse of script directory as work directory

It's incorrect to assume that the script directory will always match the
directory the script is executed from.  Instead cache the directory at the
start of script execution in order to be able to get back to it if needed.

Fixes: 629ab8ddb775 ('livepatch-build-tools: do not use readlink -m option')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
livepatch-build