Revision: 12588
http://sourceforge.net/p/skim-app/code/12588
Author: hofman
Date: 2021-11-30 10:30:28 +0000 (Tue, 30 Nov 2021)
Log Message:
-----------
Don't use name of builtin as variable name
Modified Paths:
--------------
trunk/displayline
Modified: trunk/displayline
===================================================================
--- trunk/displayline 2021-11-29 23:56:01 UTC (rev 12587)
+++ trunk/displayline 2021-11-30 10:30:28 UTC (rev 12588)
@@ -30,11 +30,11 @@
line=$1
file="$2"
shopt -s extglob
-[[ $# -gt 2 ]] && source="$3" || source=""
+[[ $# -gt 2 ]] && src="$3" || src=""
# expand relative paths
[[ "${file:0:1}" == "/" ]] || file="${PWD}/${file}"
-[[ "${source}" == "" || "${source:0:1}" == "/" ]] || source="${PWD}/${source}"
+[[ "${src}" == "" || "${src:0:1}" == "/" ]] || src="${PWD}/${src}"
# run AppleScript
/usr/bin/osascript << EOF
@@ -49,10 +49,10 @@
end try
end if
open theFile
- if "$source" is "" then
+ if "$src" is "" then
tell front document to go to TeX line theLine showing reading bar $bar
else
- set theSource to POSIX file "$source"
+ set theSource to POSIX file "$src"
tell front document to go to TeX line theLine from theSource showing
reading bar $bar
end if
if $activate then activate
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit