Erreur dans un script bash
Bonjour,
Lors de l'installation d'un package j'ai une erreur dans le script suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #!/bin/bash
top_builddir_slash="${0%%doltlibtool}"
: ${top_builddir_slash:=./}
args=()
modeok=false
tagok=false
echo "$@ >"$@">"
for arg in "$@"; do
echo ">"$arg">"
case "$arg" in
--mode=compile) modeok=true ;;
--tag=CC|--tag=CXX) tagok=true ;;
*) args+=("$arg")
esac
done
if $modeok && $tagok ; then
. ${top_builddir_slash}doltcompile "${args[@]}"
else
exec ${top_builddir_slash}libtool "$@"
fi |
Voici l'erreur :
Code:
1 2
| ../../doltlibtool: line 11: syntax error near unexpected token `"$arg"'
../../doltlibtool: line 11: ` *) args+=("$arg")' |
Je ne suis pas trop à l'aise avec le langage shell. Y a t'il une erreur flagrante ?
Merci