File: test_inifile_get

package info (click to toggle)
openstack-pkg-tools 123
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 912 kB
  • sloc: sh: 3,992; makefile: 31
file content (13 lines) | stat: -rwxr-xr-x 195 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

. ../../../pkgos_func

pkgos_inifile get example.ini DEFAULT lock_dir
if [ "${RET}" = "/var/lock" ] ; then
	exit 0
else
	echo "Could not get value from example.ini"
	exit 1
fi