diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-01 12:14:20 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-01 12:14:20 -0500 |
commit | 0f7d778bfe357bd031249165d69561a5f92a0d8a (patch) | |
tree | b84f7f9a76e402600a5e30dde2944861b53fcada /chapter6/backup.sh | |
parent | 8940fe90af138d23df464bf967a77b0285c79e90 (diff) |
Adjust function spinner to take in a spinner type. If no type is defined then random will be chosen. Pass the 2nd argument as spinnertype when spinner is invoked. Cleanup some extraction text and reset the colors at the end.
Diffstat (limited to 'chapter6/backup.sh')
-rw-r--r-- | chapter6/backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 6d23c27..f710037 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -10,7 +10,7 @@ else echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... " pushd "${LFS}" > /dev/null || exit 1 sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJpf "${HOME}"/"${file}" "${directories[@]}" >/dev/null 2>&1 & pid=$! - spinner "$pid" + spinner "$pid" "${SPINNER}" retval=$? if [ "$retval" -ne 0 ]; then printf "%b" "${RED}FAILED!${RST}\n" |