Skip to content

Commit 29b4dae

Browse files
committed
Removed our readlink()
1 parent 134a61b commit 29b4dae

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,6 @@ YELLOW='\033[0;33m'
2121
BLUE='\033[0;34m'
2222
NC='\033[0m' # No Colo# Logging display and formatting functions
2323

24-
# If we don't have a readlink command, parse ls -l output.
25-
if ! type readlink 1>/dev/null 2>&1; then
26-
readlink() {
27-
local ret=0 f=''
28-
while [ $# -gt 0 ]; do
29-
f="$1"
30-
shift 1
31-
32-
[ ! -e "$f" ] && [ ! -h "$f" ] && {
33-
ret=1
34-
continue
35-
}
36-
37-
# shellcheck disable=SC2012 # In this specific scenario, this method is OK
38-
f="$(ls -ld "$f")"
39-
echo "${f//*-> /}"
40-
done
41-
42-
return $ret
43-
}
44-
fi
45-
4624
# Log a message to stdout
4725
log_level() {
4826
local level=$1

0 commit comments

Comments
 (0)