Skip to content

Commit

Permalink
readlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed May 5, 2017
1 parent 2257fc4 commit a46911f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions update-golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,18 @@ download() {
}

symlink_test() {
file "$1" | grep -q symbolic
#file "$1" | grep -q symbolic
readlink "$1" >/dev/null
}

symlink_get() {
local f=
f=$(file "$1")
local j=
j=$(echo "$f" | awk '{print $NF}')
debug "symlink_get: $1: [$f]: [$j]"
echo "$j"
#local f=
#local j=
#f=$(file "$1")
#j=$(echo "$f" | awk '{print $NF}')
#debug "symlink_get: $1: [$f]: [$j]"
#echo "$j"
readlink "$1"
}

remove_old_link() {
Expand Down
2 changes: 1 addition & 1 deletion update-golang.sh.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2808cace1412c37c3ec83b5568128bdfc487a527c5ffc4a589c28b4395ff46fe update-golang.sh
2116ed90f8fe8ddbb00e770928bf7e05a3fe7473bd0801a02257d0f86ac5ece5 update-golang.sh

0 comments on commit a46911f

Please sign in to comment.