mfshell: add configuration file parsing

This commit is contained in:
josch
2014-09-23 11:38:10 +02:00
parent 8f726ab5e5
commit e14d91ca1d
2 changed files with 171 additions and 29 deletions

View File

@@ -17,4 +17,8 @@ esac
cmd="valgrind --suppressions="${source_dir}/valgrind.supp" --fullpath-after="$source_dir" --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes --track-origins=yes"
$cmd "${binary_dir}/mediafire-shell" -c "help; whoami"
if [ ! -f "./.mediafire-tools.conf" -a ! -f "~/.mediafire-tools.conf" ]; then
echo "no configuration file found" >&2
exit 1
fi
$cmd "${binary_dir}/mediafire-shell" -c "help; ls; whoami"