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

fix check_version functions

parent 95ac14c0
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -116,8 +116,6 @@ rem_usertmp(){

##		Update package automaticaly

##		Update package automaticaly

pac_update(){
	local status pkgname build_dir
	pkgname="obarun-install"
@@ -159,8 +157,8 @@ pac_update(){
		git_version=$(git rev-parse --short HEAD)
	
		if ! [[ "$curr_version" == "$git_version" ]]; then
			echo_info " $pkgname is out of date, updating please wait"
			make_package
			check_update || die " Impossible to udpdate $pkgname"
			make_package || die " Impossible to make the package"
		fi
	}	
		
@@ -169,7 +167,7 @@ pac_update(){
		cd "$build_dir/$pkgname"
		status=$(git pull origin 2>/dev/null)
		if [[ $status == "Already up-to-date." ]]; then
			echo_valid " $status Nothing to do"
			echo_valid " Git $status Nothing to do"
			sleep 2
		else
			echo_info " $pkgname is out of date, updating please wait"