fix stuff with iglu -u
This commit is contained in:
		
							parent
							
								
									21eebdb14f
								
							
						
					
					
						commit
						5bdef5032d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								iglu.sh
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								iglu.sh
									
										
									
									
									
								
							|  | @ -164,6 +164,7 @@ elif [ "$iu" = "1" ]; then | ||||||
|     			case $(stat -c "%F" /$file) in |     			case $(stat -c "%F" /$file) in | ||||||
|         			directory) rmdir 2>/dev/null /$file;; |         			directory) rmdir 2>/dev/null /$file;; | ||||||
|         			"regular file") rm /$file;; |         			"regular file") rm /$file;; | ||||||
|  |         			"regular empty file") rm /$file;; | ||||||
|         			"symbolic link") rm /$file;; |         			"symbolic link") rm /$file;; | ||||||
|         			*) break;; |         			*) break;; | ||||||
|     			esac |     			esac | ||||||
|  | @ -211,8 +212,9 @@ elif [ "$u" = "1" ]; then | ||||||
|     		case $(stat -c "%F" /$file) in |     		case $(stat -c "%F" /$file) in | ||||||
|         		directory) rmdir 2>/dev/null /$file;; |         		directory) rmdir 2>/dev/null /$file;; | ||||||
|         		"regular file") rm /$file;; |         		"regular file") rm /$file;; | ||||||
|  |         		"regular empty file") rm /$file;; | ||||||
|         		"symbolic link") rm /$file;; |         		"symbolic link") rm /$file;; | ||||||
|         		*) echo "can't remove $file";; |         		*) echo "can't remove /$file";; | ||||||
|     		esac |     		esac | ||||||
|     	done |     	done | ||||||
| elif [ "$b" = "1" ]; then | elif [ "$b" = "1" ]; then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue