You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
226 B
12 lines
226 B
8 months ago
|
#!/bin/bash
|
||
|
|
||
|
# Just in case realpath doesn't exist, try a perl approach.
|
||
|
function get_real_path()
|
||
|
{
|
||
|
if realpath $0 &> /dev/null; then
|
||
|
realpath $0
|
||
|
return
|
||
|
fi
|
||
|
perl -e 'use Cwd "abs_path";print abs_path(shift)' $0
|
||
|
}
|