From fffd53b57cc84ecadb8f51c84a83e4389fe900d0 Mon Sep 17 00:00:00 2001 From: tokiclover Date: Fri, 15 May 2015 12:17:16 +0200 Subject: [PATCH] browser-home-profile/functions: Renamed pr_ prefix to pr- (minor fix) --- modules/browser-home-profile/functions/bhp | 12 ++++++------ modules/browser-home-profile/functions/mktmp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/browser-home-profile/functions/bhp b/modules/browser-home-profile/functions/bhp index 63754978..69be86d0 100644 --- a/modules/browser-home-profile/functions/bhp +++ b/modules/browser-home-profile/functions/bhp @@ -13,31 +13,31 @@ function bhp { for dir (${HOME}/.${PROFILE} ${HOME}/.cache/${PROFILE#config/}) { [[ -d ${dir} ]] || continue - pr_begin "Setting up tarball..." + pr-begin "Setting up tarball..." pushd -q ${dir:h} || continue if [[ -f ${profile}/.unpacked ]]; then if [[ -f ${profile}${ext} ]] { mv -f ${profile}${ext} ${profile}.old${ext} || - { pr_end 1 Moving; continue; } + { pr-end 1 Moving; continue; } } tar -X ${profile}/.unpacked -Ocp ${profile} | \ ${=compressor} ${profile}${ext} || - { pr_end 1 Packing; continue; } + { pr-end 1 Packing; continue; } else if [[ -f ${profile}${ext} ]]; then tarball=${profile}${ext} elif [[ -f ${profile}.old${ext} ]]; then tarball=${profile}.old${ext} else - pr_warn "No tarball found."; continue + pr-warn "No tarball found."; continue fi ${compressor[(w)1]} -cd ${tarball} | tar -xp && touch ${profile}/.unpacked || - { pr_end 1 Unpacking; continue; } + { pr-end 1 Unpacking; continue; } fi popd -q - pr_end ${?} + pr-end ${?} } } diff --git a/modules/browser-home-profile/functions/mktmp b/modules/browser-home-profile/functions/mktmp index e49d9a56..ec0c8593 100644 --- a/modules/browser-home-profile/functions/mktmp +++ b/modules/browser-home-profile/functions/mktmp @@ -49,12 +49,12 @@ function mktmp { done if ! ([[ ${#} == 1 ]] && [[ -n ${1} ]]); then - pr_error "Invalid argument(s)" + pr-error "Invalid argument(s)" return 3 fi case ${1} { (*${temp}) ;; - (*) pr_error "Invalid TEMPLATE"; return 4;; + (*) pr-error "Invalid TEMPLATE"; return 4;; } if (( ${+commands[mktemp]} )); then @@ -68,7 +68,7 @@ function mktmp { (*) [[ -e ${tmp} ]] || { mkdir -p ${tmp:h}; touch ${tmp}; };; } if (( ${?} != 0 )) { - pr_error "Failed to create ${tmp}" + pr-error "Failed to create ${tmp}" return 5 } [[ -h ${tmp} ]] && return