Various small fixes
This commit is contained in:
		
							parent
							
								
									feb789c989
								
							
						
					
					
						commit
						c828dfc2e6
					
				@ -1,4 +1,4 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HASH="%C(yellow)%h%C(reset)"
 | 
					HASH="%C(yellow)%h%C(reset)"
 | 
				
			||||||
RELATIVE_TIME="%C(green)%ar%C(reset)"
 | 
					RELATIVE_TIME="%C(green)%ar%C(reset)"
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
function install_pkg() {
 | 
					function install_pkg() {
 | 
				
			||||||
  if hash apt-get 2>/dev/null; then
 | 
					  if hash apt-get 2>/dev/null; then
 | 
				
			||||||
    sudo -n apt-get update
 | 
					    sudo -n apt-get update
 | 
				
			||||||
    sudo -n DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${$}
 | 
					    sudo -n DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${@}
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -87,8 +87,10 @@ function main() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  install_pkg locales less
 | 
					  install_pkg locales less
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  #echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
 | 
					  if [[ ${REMOTE_CONTAINERS} || ${DEVCONTAINER} ]]; then
 | 
				
			||||||
  #sudo locale-gen
 | 
					    echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
 | 
				
			||||||
 | 
					    sudo locale-gen
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  setup_fish
 | 
					  setup_fish
 | 
				
			||||||
  setup_ssh
 | 
					  setup_ssh
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
set -e
 | 
					set -e
 | 
				
			||||||
cd "$(dirname "$0")/.."
 | 
					cd "$(dirname "$0")/.."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user