浏览代码

updates to menu and title

openDir-d-2.0
HMSheets 5 年前
父节点
当前提交
34abc5eaa2
共有 2 个文件被更改,包括 14 次插入8 次删除
  1. +10
    -6
      bin/menu
  2. +4
    -2
      bin/title

+ 10
- 6
bin/menu 查看文件

@@ -1,24 +1,28 @@
#!/usr/bin/env bash

menu () {
rootDir="./modules"
currentDir="./modules"
previousDir="./modules"
while [ active=1 ]; do
title
echo "Please select a Entry"
echo "Current Dir: $"
echo "Please select and Entry"
echo ""
shopt -s nullglob
moduleCat=(./modules/*)
lsModDir="$currentDir*"
moduleEnt=($lsModDir)
x=0
for entry in "${moduleEnt[@]}"; do
if [[ -d $entry ]]; then echo "$x:d - $entry"
else [[ -f $entry ]]; then echo "$x:f - $entry"
if [ -d $entry ]; then echo "$x:d - $entry"
elif [ -f $entry ]; then echo "$x:m - $entry"
fi
x=$((x+1))
done
echo "exit"
read opt
exitchk
entSelect=`echo ${moduleEnt[$opt]} | sed 's|./modules/|../|'`
submenu
entSelect=`echo ${moduleEnt[$opt]} | sed 's|\$previousDir|..|'`
clear
done
}


+ 4
- 2
bin/title 查看文件

@@ -10,9 +10,11 @@ IFS='' read -r -d '' VAR <<-'EOF'
\ | \__. | | \__/ || \__., | | | | _| |_.' / | | | | | \__/ | /
\ '.__.' | ;.__/ '.__.'[___||__]|______.' [___][___] '.__.;__] /
\ [__| /
\ 2.0 /
//////////////////////////////////////////////////////////////////////////////
Version 1.0
A Bash Script For Downloading Open Directories Using Wget
Version 2.0
Totally Modular Dude!
A modular bash script for downloading shit
Written by HMSheets
-------------------------------------------------------------------------------


正在加载...
取消
保存