commit f72105c1fff328d6e9f2d398295d2b85366c8138 parent d2d09eecf139b25cba546ac16065179f70b31088 Author: hhvn <dev@haydenvh.com> Date: Thu, 4 Mar 2021 16:10:37 +0000 bin/interface.sh: add second prompt for uri input Diffstat:
M | bin/interface.sh | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/interface.sh b/bin/interface.sh @@ -366,7 +366,10 @@ menu_users(){ } cp $datadir/profile/$user.new $datadir/profile/$user } - [ "$(echo "$edit" | grep -o '^.')" = "u" ] && curl "$(echo "$edit" | sed 's/^.//' | tr -d ' ')" > $datadir/profile/$user + [ "$(echo "$edit" | grep -o '^.')" = "u" ] && { + [ "$(echo "$edit" | sed 's/^.//' | tr -d ' ')" = "" ] && prompt "uri:" url || uri=$(echo "$edit" | sed 's/^.//' | tr -d ' ') + curl "$uri" > $datadir/profile/$user + } ok "profile updated" anykey break