File: test-sudo

package info (click to toggle)
apptainer 1.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,780 kB
  • sloc: sh: 3,329; ansic: 1,706; awk: 414; python: 103; makefile: 54
file content (12 lines) | stat: -rwxr-xr-x 188 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

sudocmd="sudo -E ${sudo_args}"
unset sudo_args

# reset timeout for each invocation or exit
# if a password is required
if ! sudo -vn ; then
    exit 1
fi

exec ${sudocmd} "$@"