mirror of
				https://github.com/flynx/post-install.git
				synced 2025-10-31 19:40:10 +00:00 
			
		
		
		
	now listing scripts...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									52be8087f3
								
							
						
					
					
						commit
						42cb321466
					
				
							
								
								
									
										14
									
								
								post-install
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								post-install
									
									
									
									
									
								
							| @ -414,7 +414,6 @@ function @setupList(){ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| #---------------------------------------------------------------------- | #---------------------------------------------------------------------- | ||||||
| # config... | # config... | ||||||
| 
 | 
 | ||||||
| @ -429,6 +428,15 @@ function @setupList(){ | |||||||
| #---------------------------------------------------------------------- | #---------------------------------------------------------------------- | ||||||
| # help and arguments... | # help and arguments... | ||||||
| 
 | 
 | ||||||
|  | function listScripts(){ | ||||||
|  | 	[ -d "$SCRIPT_DIR" ] \ | ||||||
|  | 		&& echo "-" \ | ||||||
|  | 		&& return 0 | ||||||
|  | 
 | ||||||
|  | 	local scripts=( $(ls "$SCRIPT_DIR") ) | ||||||
|  | 	echo ${scripts/README} | ||||||
|  | } | ||||||
|  | 
 | ||||||
| function printhelp(){ cat << EOF | function printhelp(){ cat << EOF | ||||||
| Usage: $CMD [OPTIONS] | Usage: $CMD [OPTIONS] | ||||||
| 
 | 
 | ||||||
| @ -455,6 +463,9 @@ Default features: | |||||||
| Supported features: | Supported features: | ||||||
|   ${ALL_FEATURES[@]} |   ${ALL_FEATURES[@]} | ||||||
| 
 | 
 | ||||||
|  | Available scripts: | ||||||
|  |   $( listScripts ) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| Examples: | Examples: | ||||||
|     Only create dirs and links (features dir and user-link)... |     Only create dirs and links (features dir and user-link)... | ||||||
| @ -480,6 +491,7 @@ while ! [ -z "$1" ] ; do | |||||||
| 			QUIET=1 | 			QUIET=1 | ||||||
| 			shift | 			shift | ||||||
| 			;; | 			;; | ||||||
|  | 		# XXX introspection... | ||||||
| 
 | 
 | ||||||
| 		-s|--source) | 		-s|--source) | ||||||
| 			[ -z "$2" ] \ | 			[ -z "$2" ] \ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user