Ubuntu 18.04 CI is failing in
Test 4 - install command from normal user without sudo - when packages are installed
+'[' -d /home/runner/otpgen ']'
echo 'Creating required files'
mkdir -p /home/runner/otpgen
Checking for required packages...
Creating required files
touch /home/runner/otpgen/.secret_list
chown -R runner:runner /home/runner/otpgen
chown: changing ownership of '/home/runner/otpgen/.secret_list': Operation not permitted
chown: changing ownership of '/home/runner/otpgen': Operation not permitted
failed=1
'[' -z 1 ']'
fatal_error 'Unhandled Error, probably permission issues(?), You can re-install using --clean-install'
echo -e '\e[31m\e[1m Fatal Error \e[0m: Unhandled Error, probably permission issues(?), You can re-install using --clean-install'
exit 255
Seems in Ubuntu file owner cant do chown.
We can handle this by checking the file/group ownership is already correct