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
pdftk infile.pdf cat 1-6east output outfile.pdf |
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/bash | |
: "${SIF_FILE:=image.sif}" | |
: "${DEF_FILE:=image.def}" | |
EXPECTED_FILE_TYPE="a /usr/bin/env run-singularity script executable (binary data)" | |
RECEIVED_FILE_TYPE=$(file $SIF_FILE | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//') | |
if [ "$EXPECTED_FILE_TYPE" != "$RECEIVED_FILE_TYPE" ]; then | |
echo "Fatal error, $SIF_FILE header is a $RECEIVED_FILE_TYPE" |