fix: activate ne pkg issue

This commit is contained in:
simonzhangsz committed 2024-01-17 15:44:09 +08:00
1 parent 9e54ccd886
commit bafc4b4c85
3 files changed
+82 -70

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
expect <<EOF
set timeout 180
if [[ ${1} == *.deb ]]; then
spawn dpkg -i --force-all ${1}
elif [[ ${1} == *.rpm ]]; then
spawn rpm -Uvh ${1}
else
exit 1
#"The file does not have a .deb or .rpm extension"
fi
expect {
"y/n" { send "n\n";exp_continue }
}
EOF