Skip to content

Commit

Permalink
* Fixed umount command (kudos to @aprada-stratio)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml0renz0 committed Nov 15, 2019
1 parent 0368035 commit 5822569
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vcli
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# vcli internal variables
declare SCRIPTNAME
SCRIPTNAME="$(basename "$0")"
declare VERSION="0.5.15"
declare VERSION="0.5.16"
declare VERBOSE=${VERBOSE:-"no"}
declare DEBUG=${DEBUG:-"no"}
declare DEBUG_HEXDUMP="no"
Expand Down Expand Up @@ -61,7 +61,7 @@ function new_version(){
[[ $disable_prompt ]] && return
latest_release="$(timeout 2 curl -s https://api.github.com/repos/mlorenzo-stratio/vcli/releases/latest | jq -r '.tag_name')"
if [[ $latest_release && $latest_release != "null" && $VERSION != "$latest_release" ]]; then
echo -e "New version available: $latest_release\nYou can download it by running:\n curl -L https://github.com/mlorenzo-stratio/vcli/raw/$latest_release/vcli > $0"
echo -e "New version available: $latest_release\nYou can download it by running:\n curl -sL https://github.com/mlorenzo-stratio/vcli/raw/$latest_release/vcli > $0"
return 0
fi
return 1
Expand Down Expand Up @@ -180,7 +180,7 @@ declare -A vcli_commands_help=(
[disable-debug]="disable-debug \n disable debugging"
[enable-hexdump-debug]="enable-hexdump-debug \n enable input hexdump debugging"
[disable-hexdump-debug]="disable-hexdump-debug \n disable input hexdump debugging"
[exit]="exit \n exits vcli"
[exit]="exit \n exits vcli"
)

# return whether is a command or not
Expand Down Expand Up @@ -1090,6 +1090,7 @@ function _rmtree(){
if [[ ! $depth ]]; then
depth=0
first="yes"
# TODO: Ask user before removing tree
echo -n "Removing recursively '$url'"
# other wise we increment a depth as we go deeper in the structure
else
Expand Down Expand Up @@ -1209,7 +1210,7 @@ function _backup(){
fi
wait
if [[ $first ]]; then
cd "$dest" || return
cd "$dest" || return
debug "backup: $url => $destfile"
tar cfz "$destfile" ./* > /dev/null
rm -fr "$dest"
Expand Down

0 comments on commit 5822569

Please sign in to comment.