Browse Source

fix svnrestore

pull/57/head
Gorgone 4 years ago
committed by GitHub
parent
commit
c38f88c01f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      support/functions/_compress
  2. 5
      support/functions/_subversion

2
support/functions/_compress

@ -116,11 +116,13 @@ untarsvn(){
tar -xf "$bsvn/$1.tar.gz"
cd $bsvn
ln -sf "$bsvn/$("$svndir/config.sh" -r).tar.gz" "last.tar.gz"
printf "\e[1A $w_l SVN Revision : $c_l$(basename $(readlink -f $bsvn/last.tar.gz) .tar.gz)$w_l\n"
else
if [ -f "$bsvn/last.tar.gz" ]
then
tar -xf "$bsvn/last.tar.gz"
printf "\e[1A $w_l SVN Revision : $c_l$(basename $(readlink -f $bsvn/last.tar.gz) .tar.gz)$w_l\n"
else
printf "$w_l SVN Backup :$r_l $txt_not_found\n"
sleep 3

5
support/functions/_subversion

@ -82,9 +82,10 @@ svnrestore(){
else
printf "$p_l\n $txt_no oscam-svn $txt_found\n$re_"
fi
_nl
untarsvn $1
[ -f "$svndir/config.h" ]&& printf "$w_l"" SVN Revision : $y_l""$("$svndir/config.sh" -r) restored\n\n$re_"
#[ -f "$svndir/config.h" ]&& printf "$w_l"" SVN Revision : $y_l""$("$svndir/config.sh" -r) restored\n\n$re_"
printf "\e[1A\t\t\t$y_l""restored\n\n$re_"
[ -L "$workdir/lastbuild.log" ]&& rm "$workdir/lastbuild.log";
[ -L "$workdir/lastpatch.log" ]&& rm "$workdir/lastpatch.log";
[ -f "$workdir/SVN-IS-PATCHED" ] && rm -f "$workdir/SVN-IS-PATCHED";

Loading…
Cancel
Save