File: example.ia-c-nocheck

package info (click to toggle)
shellia 5.7.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 728 kB
  • sloc: sh: 7,087; makefile: 34
file content (35 lines) | stat: -rwxr-xr-x 689 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# vim: set filetype=sh :
#        file: example.ia-c-nocheck
#   copyright: Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
#     license: GNU General Public License, version 3
# description: example using check normally but disable it for some functions
#    see also: test.ia-c-nocheck
set -e
set -u

. ./ia

without_r()
{
  eval "$ia_init"
  ia_add "echo without_r"
  ia
}

with_r()
{
  eval "$ia_init"
  ia_add "echo with_r"
  ia_nocheck
  ia_add "without_r" # call without_r from with_r
  ia -c
}

eval "$ia_init"
ia_add "echo main without_r"
ia_nocheck
ia_add "without_r" # call without_r from without_r
ia_nocheck
ia_add "with_r" # call with_r from without_r
ia