File: test-sudo

package info (click to toggle)
apptainer 1.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,748 kB
  • sloc: sh: 3,321; ansic: 1,706; awk: 414; python: 103; makefile: 54
file content (12 lines) | stat: -rwxr-xr-x 188 bytes parent folder | download | duplicates (2)
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} "$@"