Skip to content

Commit c442d76

Browse files
hopenobugSharzyL
authored andcommitted
fix script hist_file error
1 parent 7903407 commit c442d76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/pb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pb_post() {
172172

173173
# record history
174174
manage_url=$(jq -r '.manageUrl' "$tmp_file")
175-
manage_path=${admin_url##*/}
175+
manage_path=${manage_url##*/}
176176
echo "$manage_path" >> "$hist_file"
177177

178178
# copy URL to clipboard
@@ -243,8 +243,8 @@ pb_update() {
243243
jq . "$tmp_file" 2>/dev/null || _die "$(cat "$tmp_file")"
244244

245245
# record history
246-
manage_url=$(jq -r '.admin' "$tmp_file")
247-
manage_path=${admin_url##*/}
246+
manage_url=$(jq -r '.manageUrl' "$tmp_file")
247+
manage_path=${manage_url##*/}
248248
echo "$manage_path" >> "$hist_file"
249249

250250
# copy URL to clipboard

0 commit comments

Comments
 (0)