Support for A.pdf, A.tex and Ac.tex for initial files
This commit is contained in:
1 parent
42a5b9778e
commit
e4e25eca55
12 files changed
+104
-32
No files matched your search
+2
-1
@@ -8,12 +8,13 @@ fi
|
||||
|
||||
# Try to change into the directory, exit on failure
|
||||
cd "$1" || { echo "Error: Cannot access directory '$1'"; exit 1; }
|
||||
folder_name="$(basename "$PWD")"
|
||||
|
||||
# Enable nullglob: if no pdfs exist, the loop won't run once with "*.pdf"
|
||||
shopt -s nullglob
|
||||
|
||||
for file in *.pdf; do
|
||||
if [ "$file" = "enonce.pdf" ]; then
|
||||
if [ "$file" = "enonce.pdf" ] || [ "$file" = "énoncé.pdf" ] || [ "$file" = "$folder_name.pdf" ]; then
|
||||
echo "Skipping: $file"
|
||||
continue
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user