⚡ ajout de suivi de progression csv et doc de cronjob
This commit is contained in:
parent
c7383ed6ef
commit
d76e23bb65
6 changed files with 151 additions and 8 deletions
|
@ -10,6 +10,22 @@
|
|||
extension="org" # ou md
|
||||
fi
|
||||
|
||||
add_path_to_config() {
|
||||
local path=$1
|
||||
local config_file="config/books_path.txt"
|
||||
|
||||
if [ -f "$config_file" ]; then
|
||||
if grep -q "^${path}$" "$config_file"; then
|
||||
echo "Le chemin '${path}' existe déjà dans le fichier de configuration."
|
||||
else
|
||||
echo "$(pwd)/$path" >> "$config_file"
|
||||
echo "Le chemin '${path}' a été ajouté au fichier de configuration."
|
||||
fi
|
||||
else
|
||||
echo "Le fichier de configuration '${config_file}' n'existe pas."
|
||||
touch $config_file
|
||||
fi
|
||||
}
|
||||
function generate_uuid() {
|
||||
uuid=$(cat /proc/sys/kernel/random/uuid)
|
||||
echo "$uuid";
|
||||
|
@ -56,5 +72,8 @@
|
|||
echo $nom_du_livre | xargs -I{} sed -i 's|BOOK_TITLE|{}|g' $nom_du_livre/taches_$nom_du_livre.org
|
||||
|
||||
exa -l $nom_du_livre
|
||||
add_path_to_config $nom_du_livre
|
||||
|
||||
echo "fichiers du livre $nom_du_livre créé"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue