Add that the file contains test data. Add output of the function for testing.
This commit is contained in:
9
setup.sh
9
setup.sh
@@ -132,12 +132,15 @@ echo "Installed!"
|
||||
if [[ -n "$create_general" && ! -f "$general_config" ]]; then
|
||||
function print_general_contents {
|
||||
cat <<- EOF
|
||||
; TEST DATA
|
||||
enable=true
|
||||
user=test
|
||||
user_desc=Test
|
||||
branch=$branch
|
||||
; TEST DATA
|
||||
EOF
|
||||
}
|
||||
print_general_contents # FORTEST
|
||||
print_general_contents > "$general_config"
|
||||
ls -lh "$general_config"
|
||||
cat "$general_config"
|
||||
@@ -145,12 +148,15 @@ fi
|
||||
if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
||||
function print_workstation_contents {
|
||||
cat <<- EOF
|
||||
; TEST DATA
|
||||
enable=true
|
||||
coding=true
|
||||
editing=false
|
||||
gaming=false
|
||||
; TEST DATA
|
||||
EOF
|
||||
}
|
||||
print_workstation_contents # FORTEST
|
||||
print_workstation_contents > "$workstation_config"
|
||||
ls -lh "$workstation_config"
|
||||
cat "$workstation_config"
|
||||
@@ -158,9 +164,12 @@ fi
|
||||
if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
||||
function print_server_contents {
|
||||
cat <<- EOF
|
||||
; TEST DATA
|
||||
enable=true
|
||||
; TEST DATA
|
||||
EOF
|
||||
}
|
||||
print_server_contents # FORTEST
|
||||
print_server_contents > "$server_config"
|
||||
ls -lh "$server_config"
|
||||
cat "$server_config"
|
||||
|
||||
Reference in New Issue
Block a user