[Assorted-commits] SF.net SVN: assorted: [520] shell-tools/trunk/src/bash-commons/simple-setup .bas
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-29 03:28:57
|
Revision: 520 http://assorted.svn.sourceforge.net/assorted/?rev=520&view=rev Author: yangzhang Date: 2008-02-28 19:28:55 -0800 (Thu, 28 Feb 2008) Log Message: ----------- fixed some unbound variable bugs Modified Paths: -------------- shell-tools/trunk/src/bash-commons/simple-setup.bash Modified: shell-tools/trunk/src/bash-commons/simple-setup.bash =================================================================== --- shell-tools/trunk/src/bash-commons/simple-setup.bash 2008-02-27 04:11:18 UTC (rev 519) +++ shell-tools/trunk/src/bash-commons/simple-setup.bash 2008-02-29 03:28:55 UTC (rev 520) @@ -5,6 +5,7 @@ new_version=$(( BASH_VERSINFO[0] >= 3 && BASH_VERSINFO[1] >= 1 )) host= +do_remote= do_remove= do_dev= prefix="/opt/${pkg:?}" @@ -58,7 +59,7 @@ } install_raw() { - local do_strip_ext="$1" do_copy="$2" dst="$3" + local do_strip_ext="$1" do_copy="$2" dst="$3" do_dest_path= if [[ "${dst#/}" == "$dst" ]] ; then dst="$prefix/$dst" else @@ -80,7 +81,7 @@ fi local dstdir="$( dirname "$dst" )/" local dstname="$( basename "$dst" )" - local do_dest_path=1 + do_dest_path=1 else local dstdir="$dst" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |