Skip to content

Commit

Permalink
src/winusb: Defensive Bash Programming: readonly all function definit…
Browse files Browse the repository at this point in the history
…ions

Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 7, 2017
1 parent 8ba09ec commit 3033286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ echo_with_color(){
echo -e "${message_body}"
switch_terminal_text_color none
fi
}
}; declare -fr echo_with_color

# Unmount mounted filesystems and clean-up mountpoints before exiting program
# $1: Windows ISO mountpoint
Expand Down Expand Up @@ -729,7 +729,7 @@ cleanup_mountpoints(){
else
exit 2
fi
}
}; declare -fr cleanup_mountpoints

hideNoErr(){
set +o errexit
Expand All @@ -753,7 +753,7 @@ hideNoErr(){
fi

return "$RETURN"
}
}; declare -fr hideNoErr

# Copy source_file to dest_file, overwrite file if dest_file exists
# Also report copy_filesystem_files progress during operation
Expand Down Expand Up @@ -872,7 +872,7 @@ copy_filesystem_files(){
pulse on

return 0
}
}; declare -fr copy_filesystem_files

print_help(){
util_check_function_parameters_quantity 0 "${#}"
Expand Down

0 comments on commit 3033286

Please sign in to comment.