Răsfoiți Sursa

fixed paths to bash/functions in setup scripts

Fabian Peter Hammerle 9 ani în urmă
părinte
comite
f236c12f68
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      setup

+ 2 - 2
setup

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