3
									
								
								ssm
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ssm
									
									
									
									
									
								
							| @@ -3,6 +3,7 @@ shopt -s nullglob | |||||||
|  |  | ||||||
| # Utility functions | # Utility functions | ||||||
| is_function() [[ $(type -t $1 2>/dev/null) == 'function' ]] | is_function() [[ $(type -t $1 2>/dev/null) == 'function' ]] | ||||||
|  | readonly -f is_function | ||||||
|  |  | ||||||
| var() { | var() { | ||||||
| 	declare varname=$1; shift | 	declare varname=$1; shift | ||||||
| @@ -97,7 +98,7 @@ var() { | |||||||
| 			;; | 			;; | ||||||
| 		esac | 		esac | ||||||
| 	fi | 	fi | ||||||
| } | }; readonly -f var | ||||||
|  |  | ||||||
| ## Die. Why not? | ## Die. Why not? | ||||||
| die() { | die() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user