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
|
if [[ -n "$create_general" && ! -f "$general_config" ]]; then
|
||||||
function print_general_contents {
|
function print_general_contents {
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
|
; TEST DATA
|
||||||
enable=true
|
enable=true
|
||||||
user=test
|
user=test
|
||||||
user_desc=Test
|
user_desc=Test
|
||||||
branch=$branch
|
branch=$branch
|
||||||
|
; TEST DATA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
print_general_contents # FORTEST
|
||||||
print_general_contents > "$general_config"
|
print_general_contents > "$general_config"
|
||||||
ls -lh "$general_config"
|
ls -lh "$general_config"
|
||||||
cat "$general_config"
|
cat "$general_config"
|
||||||
@@ -145,12 +148,15 @@ fi
|
|||||||
if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then
|
||||||
function print_workstation_contents {
|
function print_workstation_contents {
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
|
; TEST DATA
|
||||||
enable=true
|
enable=true
|
||||||
coding=true
|
coding=true
|
||||||
editing=false
|
editing=false
|
||||||
gaming=false
|
gaming=false
|
||||||
|
; TEST DATA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
print_workstation_contents # FORTEST
|
||||||
print_workstation_contents > "$workstation_config"
|
print_workstation_contents > "$workstation_config"
|
||||||
ls -lh "$workstation_config"
|
ls -lh "$workstation_config"
|
||||||
cat "$workstation_config"
|
cat "$workstation_config"
|
||||||
@@ -158,9 +164,12 @@ fi
|
|||||||
if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
||||||
function print_server_contents {
|
function print_server_contents {
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
|
; TEST DATA
|
||||||
enable=true
|
enable=true
|
||||||
|
; TEST DATA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
print_server_contents # FORTEST
|
||||||
print_server_contents > "$server_config"
|
print_server_contents > "$server_config"
|
||||||
ls -lh "$server_config"
|
ls -lh "$server_config"
|
||||||
cat "$server_config"
|
cat "$server_config"
|
||||||
|
|||||||
Reference in New Issue
Block a user