Commit ec1d45fe authored by Eric Vidal's avatar Eric Vidal
Browse files

various error correction

parent d884423d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ pac_install(){
## 		Install package from aur

aur_install(){
	sudo -u usertmp yaourt -r "$newroot" -Sy $(grep -h -v ^# $gen_dir/$config_dir/package_list/aur_*) --noconfirm || die " Failed to install packages"
	sudo -u usertmp yaourt -r "$newroot" -Sy $(grep -h -v ^# $gen_dir/$config_dir/package_list/aur_*) || die " Failed to install packages"
}
	
## 		Create needed directory
+7 −6
Original line number Diff line number Diff line
#!/usr/bin/bash
#!/usr/bin/sh
# This script is under license BEER-WARE
# "THE BEER-WARE LICENSE" (Revision 42):
# <eric@obarun.org> wrote this file.  As long as you retain this notice you
@@ -13,18 +13,19 @@

shopt -s extglob

##		Clean before exit

trap "clean_install" EXIT ERR QUIT KILL STOP INT

##		Check is the functions file exits

if [[ -f `pwd`/functions ]]; then
  source functions
else
  die "${bred}==>> Missing file : functions${reset}"
  echo "==>> Missing file : functions"
  exit	
fi

##		Clean before exit

trap "clean_install" EXIT ERR QUIT KILL STOP INT

##		Must be root user 

(( EUID == 0 )) || die " ${bred}You must be run this script with root privileges"