Demos icon indicating copy to clipboard operation
Demos copied to clipboard

Calling ‘rpm -i’ might fail at some Linux

Open andreas-roehler opened this issue 4 years ago • 1 comments

Scripts in directory ‘podman_cli’ check for an installed podman calling ‘rpm -i’. As not all Linux systems have rpm installed, that might fail. Suggest to use POSIX command ‘type’ instead.

There is also an error WRT test in following line. Replace double brackets by single one.

Example error when running podman_pause_unpause.sh:

./podman_pause_unpause.sh: 24: rpm: not found ./podman_pause_unpause.sh: 25: [[: not found

andreas-roehler avatar Jan 28 '22 20:01 andreas-roehler

Please open an PR to fix the way you want.

rhatdan avatar Jan 28 '22 22:01 rhatdan