Skip to content

Commit

Permalink
Fix issue with blank lines in use_this_version.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dsixda committed Dec 21, 2011
1 parent 5964ecb commit 74aa9c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/choose_single_deodex
Expand Up @@ -70,6 +70,8 @@ then
exit 0
fi

# Fix Linux issue with blank lines
sed -i -e '/^$/d' ../tools/deodex_files/use_this_version.txt
version=`more ../tools/deodex_files/use_this_version.txt | sed 's/[ ]*$//g'`
cp -f ../tools/deodex_files/baksmali-$version.jar baksmali.jar
cp -f ../tools/deodex_files/smali-$version.jar smali.jar
Expand Down
3 changes: 3 additions & 0 deletions scripts/do_deodex_folder
Expand Up @@ -55,6 +55,9 @@ fi

date_str=`date '+%m%d%y_%H%M%S'`
log_file=deodex_$date_str.log

# Fix Linux issue with blank lines
sed -i -e '/^$/d' ../tools/deodex_files/use_this_version.txt
version=`more ../tools/deodex_files/use_this_version.txt | sed 's/[ ]*$//g'`

if [ "$do_log" == "y" ]
Expand Down

0 comments on commit 74aa9c7

Please sign in to comment.