Skip to content

Commit

Permalink
A tiny script to list content of the container
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Nov 6, 2024
1 parent 3ecac21 commit 860c2fe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/list-container
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -eu
container="$1"
if [ $# -gt 1 ]; then
output="$2"
else
output=${container%.*}.filelist.gz
fi

singularity exec "$container" find / -xdev 2>/dev/null | gzip -9 > $output
echo "I: listed $container into $output"

0 comments on commit 860c2fe

Please sign in to comment.