|
@@ -1,12 +1,12 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
|
|
# relpath
|
|
# relpath
|
|
-source ../bash/functions
|
|
|
|
|
|
+script_dir="$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
+source ${script_dir}/../bash/functions
|
|
|
|
|
|
link_path="$HOME/.screenrc"
|
|
link_path="$HOME/.screenrc"
|
|
target_name="screenrc"
|
|
target_name="screenrc"
|
|
|
|
|
|
-script_dir="$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
target_path="$( relpath "${script_dir}/${target_name}" "$(dirname "${link_path}")" )"
|
|
target_path="$( relpath "${script_dir}/${target_name}" "$(dirname "${link_path}")" )"
|
|
|
|
|
|
if [ -e "${link_path}" ]; then
|
|
if [ -e "${link_path}" ]; then
|