Add case for GNU Tar as gtar (OpenBSD)
This commit is contained in:
		@@ -24,7 +24,12 @@ init() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
clearRepo() {
 | 
			
		||||
  stream=$(tar xOf $repo_directory/$repo_db_file --wildcards */desc | awk -f $awk_rules_file)
 | 
			
		||||
  if [ "$(uname)" = "OpenBSD" ]; then # TODO This could probably be done better (like with actually checking if tar is GNU...
 | 
			
		||||
    gnutar="gtar"
 | 
			
		||||
  else
 | 
			
		||||
    gnutar="tar"
 | 
			
		||||
  fi
 | 
			
		||||
  stream=$($gnutar xOf $repo_directory/$repo_db_file --wildcards */desc | awk -f $awk_rules_file)
 | 
			
		||||
 | 
			
		||||
  OIFS=$IFS
 | 
			
		||||
  IFS='|'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user