Fix exiting

This commit is contained in:
Davide Depau 2019-09-06 21:59:44 +02:00
parent dc92fc3c0f
commit ce5ef278c5
Signed by: depau
GPG key ID: C7D999B6A55EFE86
3 changed files with 8 additions and 4 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "easybashgui"]
path = easybashgui
url = https://github.com/BashGui/easybashgui.git
[submodule "decrypt"]
path = decrypt
url = https://github.com/DoubleLabyrinth/how-does-SecureCRT-encrypt-password.git

1
decrypt Submodule

@ -0,0 +1 @@
Subproject commit aa0792baf9cb7179f219c53c41ecffcfaa1c7f33

8
shcrt
View file

@ -106,8 +106,11 @@ function scrt_menu {
return
elif [[ "$menu_choice" == "" ]]; then
scrt_cd ..
if [[ "$current_path" == "" ]]; then
echo "$current_path"
if [[ "$current_path" == "" ]] || [[ "$current_path" == ".." ]]; then
return
else
scrt_menu
fi
else
alert_message "Could not find selected item \"$menu_choice\""
@ -116,9 +119,6 @@ function scrt_menu {
function main {
scrt_menu
if [[ "$mode" == "$dialog" ]] || [[ "$supermode" == "dialog" ]]; then
clear
fi
}
# Run if not sourced