mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
WIP: Adds --no-spin option to shorten-url, fixes dev-env to copy shorten-url utils scripts.
This commit is contained in:
4
env/.local/scripts/utils/shorten-url/create
vendored
4
env/.local/scripts/utils/shorten-url/create
vendored
@@ -10,8 +10,8 @@ LOG_LABEL=$(basename "$THIS_FILE")
|
||||
THIS=${THIS:-$LOG_LABEL}
|
||||
LOG_FILE=${LOG_FILE:-"$LOG_LABEL.log"}
|
||||
|
||||
API_KEY=$(/bin/gopass show --password Keys/shlink/api-key)
|
||||
BASE_URL="https://l.housh.dev/rest/v3"
|
||||
# Setup environment
|
||||
source "$SCRIPTS/utils/shorten-url/env"
|
||||
|
||||
declare url shortCode
|
||||
declare -a tags
|
||||
|
||||
7
env/.local/scripts/utils/shorten-url/env
vendored
Executable file
7
env/.local/scripts/utils/shorten-url/env
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
API_KEY=$(/bin/gopass show --password Keys/shlink/api-key)
|
||||
BASE_URL="https://l.housh.dev/rest/v3"
|
||||
|
||||
export API_KEY
|
||||
export BASE_URL
|
||||
Reference in New Issue
Block a user