diff --git a/.bashrc b/.bashrc index cc62dcc..ada9b3f 100644 --- a/.bashrc +++ b/.bashrc @@ -166,9 +166,17 @@ function purge() { read -p "Wirklich löschen? ja/nein/Liste/Hilfe j/n/l/h " wwahl case $wwahl in "ja" | "j") - echo "Lösche..." - \rm -r $TRASHVERZ - echo "Fertig. ERR: $?" + read -e -i "nein" -p "Soll wirklich gelöscht werden ??? (ja/nein) " WIRKLICH + if [ "$WIRKLICH" = "ja" ] + then + echo "Lösche..." + command rm -v -r $TRASHVERZ >>$GIT_PFAD/logger/Logs/del.log + echo "Fertig. ERR: $?" + echo "Liste der gelöschten Dateien: $GIT_PFAD/logger/Logs/del.log" + mkdir -p $TRASHVERZ + else + echo "Es wird nichts gelöscht!" + fi ;; "nein" | "n") @@ -202,15 +210,25 @@ function 7zipp() { case $1 in "l" | "x") command 7z $@ + echo "--- 7z-Listing-Script by ao ---" ;; "a") - read -p "Kompressionsstufe " KOMP - command 7z -mhe=on -p -mx=$KOMP $@ + read -e -i "5" -p "Kompressionsstufe " KOMP + read -e -i "j" -p "Verschlüsseln (J/n) " VERSCH + + if [ "$VERSCH" = "j" ] + then + command 7z -mhe=on -p -mx=$KOMP $@ + else + command 7z -mhe=on -mx=$KOMP $@ + fi + echo "--- 7z-Adding-Script by ao ---" ;; *) command 7z $@ + echo "--- 7z-Script by ao ---" ;; esac