You've already forked bash-ini-parser
mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-12-11 13:22:35 +03:00
Improve script example execution
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
TEST_FILE="${1:-file.ini}"
|
TEST_FILE="${1:-file.ini}"
|
||||||
|
|
||||||
source ../bash-ini-parser
|
source $(dirname $0)/../bash-ini-parser
|
||||||
|
|
||||||
echo show example file
|
echo show example file
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/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_FILE="$1"
|
||||||
TEST_SECTION="$2"
|
TEST_SECTION="$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user