Skip to content

Commit

Permalink
Use force to avoid error about inexisting files
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Nov 12, 2021
1 parent afcd526 commit 5edb86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/1_scraper.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ OUTPUT_FILE=$2
# si le dossier parent n'existe pas, on le crée
[ -d "$OUTPUT_FILE" ] || mkdir -p "$(dirname "$OUTPUT_FILE")"
# on supprime d'abord les anciens fichiers
rm "$OUTPUT_FILE"
rm --force "$OUTPUT_FILE"

IFS="," read -a ARRAY_URL <<< $SOURCE_URL
for val in ${ARRAY_URL[@]}; do
Expand Down

0 comments on commit 5edb86e

Please sign in to comment.