find_pdf.sh: update to 1.0

Se modifica nombre de variables de mayúscula a minúsculas
This commit is contained in:
Tuxliban Torvalds 2023-09-21 00:55:35 -06:00
parent 677b6f9bfe
commit f03a8e10d0
1 changed files with 6 additions and 5 deletions

View File

@ -1,16 +1,17 @@
#!/bin/sh
#
# v1.0 - 19/09/2023
# Códigos de salida:
# 0 - Operación exitosa
# 3 - Operación exitosa, pero no se seleccionó un archivo
#
# Shell: POSIX compliant
# Autor: O. Sánchez <o-sanchez@linuxmail.org>
# Autor: O. Sánchez <o-sanchez@linuxmail.org> 2023
#_PATH="$HOME"
_PATH="$PWD"
book=$(find "$_PATH" -name '*.pdf' -printf '%f\n' | dmenu -l 10 -p "Library")
_book=$(find "$_PATH" -name "$book")
#_path="$HOME"
_path="$PWD"
book=$(find "$_path" -name '*.pdf' -printf '%f\n' | dmenu -l 10 -p "Library")
_book=$(find "$_path" -name "$book")
if [ -z "$book" ]; then
exit 3