38 lines
637 B
Bash
Executable File
38 lines
637 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-FileCopyrightText: 2025 artlog@l0g.eu
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#
|
|
|
|
toolsdir=../lib
|
|
pushd $toolsdir >/dev/null
|
|
toolsdir=$(pwd)
|
|
source metascript.sh
|
|
popd >/dev/null
|
|
|
|
while [[ $# > 0 ]]
|
|
do
|
|
case "$1" in
|
|
*)
|
|
if [[ -z $csv_file ]]
|
|
then
|
|
csv_file="$1"
|
|
else
|
|
parsemetaarg "$1"
|
|
fi
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
metarun=metarun
|
|
|
|
if [[ -z $csv_file ]]
|
|
then
|
|
log_error "Missing csv_file argument"
|
|
exit 1
|
|
fi
|
|
|
|
enforcefile "$csv_file" exists
|
|
|
|
$metarun python3 convert_nextcloud_poll_csv.py "$csv_file" 'Très Bien' 'Bien' 'Assez Bien' 'Passable' 'Insuffisant' 'A Rejeter'
|