Skip to content

Commit

Permalink
Improved code semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucio Martínez committed Aug 24, 2014
1 parent 8c81dba commit 290a814
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ generate_sources() {
local readonly DIRECTORY="$2"
local readonly SOURCE_FILE_ONE="$3"
local readonly SOURCE_FILE_TWO="$4"
local readonly TMP='Hello World!'
local readonly OUTPUT='Hello World!'

# Create directory
mkdir "$DIRECTORY";

# Create the sources
TMP="FILE 1. This is going to be the only line. So - $OLD - should change and '$OLD' too."
# TMP=$TMP"\nThis is going to be $OLD on a first line."
# TMP=$TMP"\nThis is going to be $OLD on a second line."
# TMP=$TMP"\nThis is going to be $OLD on a third line."
OUTPUT="FILE 1. This is going to be the only line. So - $OLD - should change and '$OLD' too."
# OUTPUT=$OUTPUT"\nThis is going to be $OLD on a first line."
# OUTPUT=$OUTPUT"\nThis is going to be $OLD on a second line."
# OUTPUT=$OUTPUT"\nThis is going to be $OLD on a third line."
# Store the content
echo "$TMP" > "$SOURCE_FILE_ONE";
TMP="FILE 2. This is going to be the only line. So - $OLD - should change and '$OLD' too."
echo "$TMP" > "$SOURCE_FILE_TWO";
echo "$OUTPUT" > "$SOURCE_FILE_ONE";
OUTPUT="FILE 2. This is going to be the only line. So - $OLD - should change and '$OLD' too."
echo "$OUTPUT" > "$SOURCE_FILE_TWO";
}


Expand Down

0 comments on commit 290a814

Please sign in to comment.