0545
This commit is contained in:
@@ -277,6 +277,10 @@ nb_set_multiple_ssids_yes() {
|
|||||||
nb_add_tag_by_slug() {
|
nb_add_tag_by_slug() {
|
||||||
local dev_id="$1" tag_slug="$2"
|
local dev_id="$1" tag_slug="$2"
|
||||||
|
|
||||||
|
if [[ "$USE_TAGS" != "yes" ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
# 1) Lookup tag by slug
|
# 1) Lookup tag by slug
|
||||||
local tag_resp tag_id tag_name
|
local tag_resp tag_id tag_name
|
||||||
tag_resp="$(curl -sS \
|
tag_resp="$(curl -sS \
|
||||||
@@ -361,6 +365,10 @@ nb_add_tag_by_slug() {
|
|||||||
nb_remove_tag_by_slug() {
|
nb_remove_tag_by_slug() {
|
||||||
local dev_id="$1" tag_slug="$2"
|
local dev_id="$1" tag_slug="$2"
|
||||||
|
|
||||||
|
if [[ "$USE_TAGS" != "yes" ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
# 1) Get current tags
|
# 1) Get current tags
|
||||||
local dev_detail existing_objs_json
|
local dev_detail existing_objs_json
|
||||||
dev_detail="$(curl -sS \
|
dev_detail="$(curl -sS \
|
||||||
|
|||||||
Reference in New Issue
Block a user