fix: path
This commit is contained in:
		
							
								
								
									
										4
									
								
								debrepo
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								debrepo
									
									
									
									
									
								
							@@ -1,6 +1,8 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
VERSION="0.1.0"
 | 
					VERSION="0.1.0"
 | 
				
			||||||
DIR="$(cd "$(dirname "$0")" && pwd)" # location of debrepo source path
 | 
					#DIR="$(cd "$(dirname "$0")" && pwd)" # location of debrepo source path
 | 
				
			||||||
 | 
					SCRIPT_PATH=$(readlink -f "$0")
 | 
				
			||||||
 | 
					DIR=$(dirname "$SCRIPT_PATH")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# set vars
 | 
					# set vars
 | 
				
			||||||
index=1
 | 
					index=1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,7 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
DIR="$(cd "$(dirname "$0")" && pwd)"
 | 
					#DIR="$(cd "$(dirname "$0")" && pwd)"
 | 
				
			||||||
 | 
					SCRIPT_PATH=$(readlink -f "$0")
 | 
				
			||||||
 | 
					DIR=$(dirname "$SCRIPT_PATH")
 | 
				
			||||||
LS="$(which ls)" # this prevents bugs when aliasing ls to tools like exa
 | 
					LS="$(which ls)" # this prevents bugs when aliasing ls to tools like exa
 | 
				
			||||||
REPODIR="$1"
 | 
					REPODIR="$1"
 | 
				
			||||||
ARCHS="$($LS -l $REPODIR/apt-repo/dists/stable/main/ | awk '{print $9}' | awk NF | awk -F - '{print $2}')"
 | 
					ARCHS="$($LS -l $REPODIR/apt-repo/dists/stable/main/ | awk '{print $9}' | awk NF | awk -F - '{print $2}')"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user