Skip to content

Commit 659987f

Browse files
committed
(master) squashed down the string replacement stuff after file selection and fixed the question mark issue from non escaped question marks
1 parent 7d74552 commit 659987f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

add.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ then
1616
fi
1717

1818
# clean the flags out of the file name
19-
item=${_menu_sel_value/M--/}
20-
item=${item/-M-/}
21-
item=${item/D--/}
22-
item=${item/-D-/}
23-
#item=${item/??-/}
19+
shopt -s extglob
20+
item=${_menu_sel_value/@(M--|-M-|D--|-D-|\?\?-)/}
2421

2522
echo
2623
echo

0 commit comments

Comments
 (0)