Updated usage comment.
This commit is contained in:
		
					parent
					
						
							
								5c33d22925
							
						
					
				
			
			
				commit
				
					
						f24d264480
					
				
			
		
					 3 changed files with 9 additions and 6 deletions
				
			
		| 
						 | 
					@ -20,8 +20,9 @@
 | 
				
			||||||
# This explorer returns script code string for running a command with su.
 | 
					# This explorer returns script code string for running a command with su.
 | 
				
			||||||
# If no su is found then it returns empty string.
 | 
					# If no su is found then it returns empty string.
 | 
				
			||||||
# It uses two arguments, first user and the second command to run.
 | 
					# It uses two arguments, first user and the second command to run.
 | 
				
			||||||
# If the result string is assigned to foo it is used as:
 | 
					# If the result string is assigned to foo it can be used in code
 | 
				
			||||||
# $ $foo user command
 | 
					# generation as:
 | 
				
			||||||
 | 
					# echo "$foo user command"
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
which su > /dev/null 2>&1
 | 
					which su > /dev/null 2>&1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,8 +23,9 @@
 | 
				
			||||||
# If no su nor sudo is found then it returns string script code to run
 | 
					# If no su nor sudo is found then it returns string script code to run
 | 
				
			||||||
# bare command.
 | 
					# bare command.
 | 
				
			||||||
# It uses two arguments, first user and the second command to run.
 | 
					# It uses two arguments, first user and the second command to run.
 | 
				
			||||||
# If the result string is assigned to foo it is used as:
 | 
					# If the result string is assigned to foo it can be used in code
 | 
				
			||||||
# $ $foo user command
 | 
					# generation as:
 | 
				
			||||||
 | 
					# echo "$foo user command"
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sudo_func() {
 | 
					sudo_func() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,8 +20,9 @@
 | 
				
			||||||
# This explorer returns script code string for running a command with sudo.
 | 
					# This explorer returns script code string for running a command with sudo.
 | 
				
			||||||
# If no sudo is found then it returns empty string.
 | 
					# If no sudo is found then it returns empty string.
 | 
				
			||||||
# It uses two arguments, first user and the second command to run.
 | 
					# It uses two arguments, first user and the second command to run.
 | 
				
			||||||
# If the result string is assigned to foo it is used as:
 | 
					# If the result string is assigned to foo it can be used in code
 | 
				
			||||||
# $ $foo user command
 | 
					# generation as:
 | 
				
			||||||
 | 
					# echo "$foo user command"
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
which sudo > /dev/null 2>&1
 | 
					which sudo > /dev/null 2>&1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue