📝 Updated xh and ph
This commit is contained in:
parent
24150b9ef4
commit
6fa97078d0
2 changed files with 5 additions and 5 deletions
|
|
@ -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}+"
|
||||
|
|
|
|||
|
|
@ -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}+"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue