SHA256
cleanup source
This commit is contained in:
@@ -86,7 +86,6 @@ function apt_get_install() {
|
||||
return $rc
|
||||
}
|
||||
|
||||
WORK_DIR=''
|
||||
function cleanup_work_dir() {
|
||||
[ -n "$WORK_DIR" ] && [ -d "$WORK_DIR" ] && rm -r "$WORK_DIR"
|
||||
trap - EXIT
|
||||
@@ -143,7 +142,6 @@ function install_proxmox_backup_client() {
|
||||
cleanup_work_dir
|
||||
}
|
||||
|
||||
|
||||
function arr_contains() {
|
||||
local search=$1
|
||||
shift
|
||||
@@ -275,7 +273,6 @@ while (( $# > 0 )); do
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if [ -f "$cfgfile" ]; then
|
||||
perms=$(stat -c '%a' "$cfgfile")
|
||||
(( 8#$perms & 0022 )) && echo "Error: $cfgfile is writable by group or others!" >&2 && exit 202
|
||||
|
||||
Reference in New Issue
Block a user