Merge pull request 'gui-install: replace expect with bash' (#2704) from test-pr into main
This commit is contained in:
@@ -13,12 +13,13 @@
|
|||||||
pkgs.runCommand "deb-gui-install-test" { } ''
|
pkgs.runCommand "deb-gui-install-test" { } ''
|
||||||
${pkgs.dpkg}/bin/dpkg -i ${self'.checks.package-gui-installer-deb}/*.deb
|
${pkgs.dpkg}/bin/dpkg -i ${self'.checks.package-gui-installer-deb}/*.deb
|
||||||
ls -la /usr/bin/clan-app
|
ls -la /usr/bin/clan-app
|
||||||
${pkgs.expect}/bin/expect -c '
|
while IFS= read -r line; do
|
||||||
spawn /usr/bin/clan-app
|
if [[ "$line" == "Clan requires Nix to be installed. Would you like to install it now? (y/n)" ]]; then
|
||||||
expect "Clan requires Nix to be installed. Would you like to install it now? (y/n)"
|
echo "n"
|
||||||
send "n"
|
elif [[ "$line" == "Clan cannot run without Nix. Exiting." ]]; then
|
||||||
expect "Clan cannot run without Nix. Exiting."
|
break
|
||||||
'
|
fi
|
||||||
|
done < <(/usr/bin/clan-app)
|
||||||
touch $out
|
touch $out
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user