When a user runs ./preview script to preview the extraction result, the script executes the open command regardless of the current operating system. As a result, the command fails on Linux.
Modifications:
Use xdg-open instead of open in Linux to open a file.
Log a message in other operating systems.
Result:
Preview files are open automatically as expected in Linux.
Motivation:
./preview
script to preview the extraction result, the script executes theopen
command regardless of the current operating system. As a result, the command fails on Linux.Modifications:
xdg-open
instead ofopen
in Linux to open a file.Result: