Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
smartcd: minor fix in output message of cd --clean
Browse files Browse the repository at this point in the history
  • Loading branch information
CodesOfRishi committed Dec 18, 2021
1 parent f4e227c commit 9d22a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ __smartcd__() {

# no. of unique recently visited directories smartcd to remember
export SMARTCD_HIST_SIZE=${SMARTCD_HIST_SIZE:-"50"}
export SMARTCD_VERSION="v2.0.0"
export SMARTCD_VERSION="v2.0.1"

# options customizations
export SMARTCD_CLEANUP_OPT=${SMARTCD_CLEANUP_OPT:-"--clean"} # option for cleanup of log file
Expand Down Expand Up @@ -154,7 +154,7 @@ __smartcd__() {
rm -rf ${valid_paths}

sed -i '/^$/d' ${invalid_paths} # remove empty/blank lines
[[ -s ${invalid_paths} ]] && echo "\nThe following directories got deleted from log:" && cat ${invalid_paths}
[[ -s ${invalid_paths} ]] && echo "\nDeleted directory path(s):" && cat ${invalid_paths}
rm -rf ${invalid_paths}
}

Expand Down

0 comments on commit 9d22a15

Please sign in to comment.