1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-12-08 13:28:28 +03:00

Improve script example execution

This commit is contained in:
Alberto Fanjul
2020-06-22 13:51:16 +02:00
parent dfc4ecda7f
commit 5c83fa6d0e
2 changed files with 9 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
TEST_FILE="${1:-file.ini}"
source ../bash-ini-parser
source $(dirname $0)/../bash-ini-parser
echo show example file
echo

View File

@@ -1,6 +1,13 @@
#!/bin/bash
source ../bash-ini-parser
if [ "$#" -ne 3 ]
then
echo provide three parameters
echo "$0 <ini.file> <section> <value>"
exit 1
fi
source $(dirname $0)/../bash-ini-parser
TEST_FILE="$1"
TEST_SECTION="$2"