Created
May 4, 2019 19:07
-
-
Save loplex/be593c32f78cc8fe321994cfcaa28cde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# apt install exe-thumbnailer gridsite-clients | |
exe_file=$1 | |
exe_file_abs=$(readlink -f "$exe_file") | |
output_file="${exe_file_abs}.png" | |
exe_file_url="file://$(urlencode -m "$exe_file_abs")" | |
set -x | |
echo "" | /usr/bin/exe-thumbnailer "$exe_file_abs" "$output_file" "$exe_file_url" || exit 1 | |
set +x | |
echo "Created: $output_file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment