📝 Updated xh and ph

This commit is contained in:
z3rOR0ne 2022-09-06 23:52:54 -07:00
parent 24150b9ef4
commit 6fa97078d0
2 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
#!/bin/bash
source "${HOME}"/.n_hidden
lastarg="${@: -1}"
lastarg=("${@: -1}")
search=""
for ARG in "${@}" ; do
if [ $ARG == $lastarg ] ; then
if [[ $ARG == "${lastarg[1]}" ]] ; then
search+="${ARG}"
else
search+="${ARG}+"

View file

@ -1,11 +1,11 @@
#!/bin/bash
source "${HOME}"/.n_hidden
lastarg="${@: -1}"
# echo "lastarg is "${lastarg}""
lastarg=("${@: -1}")
search=""
for ARG in "${@}" ; do
if [ $ARG == $lastarg ] ; then
if [[ $ARG == "${lastarg[1]}" ]] ; then
search+="${ARG}"
else
search+="${ARG}+"