Quellcode durchsuchen

updates to menu and title

openDir-d-2.0
HMSheets vor 4 Jahren
Ursprung
Commit
34abc5eaa2
2 geänderte Dateien mit 14 neuen und 8 gelöschten Zeilen
  1. +10
    -6
      bin/menu
  2. +4
    -2
      bin/title

+ 10
- 6
bin/menu Datei anzeigen

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


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


+ 4
- 2
bin/title Datei anzeigen

@@ -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 Written by HMSheets
------------------------------------------------------------------------------- -------------------------------------------------------------------------------


Laden…
Abbrechen
Speichern