Add empty_file()-helper. To be used later.
This commit is contained in:
		@@ -115,4 +115,12 @@ if [ "${general_utils_sourced:-1}" = "1" ]; then    # include only once
 | 
			
		||||
        # log_debug "$1=$__n"
 | 
			
		||||
        :
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
    empty_file () {
 | 
			
		||||
	if [[ -f "$1" ]]; then
 | 
			
		||||
	    echo -n "" > $1
 | 
			
		||||
        else    
 | 
			
		||||
            log_error "$1 does not exist"
 | 
			
		||||
        fi
 | 
			
		||||
    }
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user