config: script fixes
This commit is contained in:
parent
1f2b734fd7
commit
31528e0d93
|
@ -453,7 +453,6 @@ Version 2019-11-04 2021-02-16"
|
||||||
|
|
||||||
(use-package! ox-context
|
(use-package! ox-context
|
||||||
:after ox)
|
:after ox)
|
||||||
|
|
||||||
(use-package! ox-extra
|
(use-package! ox-extra
|
||||||
:after ox
|
:after ox
|
||||||
:config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline
|
:config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline
|
||||||
|
|
|
@ -79,7 +79,9 @@ for arg; do
|
||||||
(*\ image/*)
|
(*\ image/*)
|
||||||
timg+=("$arg"); continue;;
|
timg+=("$arg"); continue;;
|
||||||
(*\ inode/directory\;*)
|
(*\ inode/directory\;*)
|
||||||
ls+=("$arg"); continue;;
|
ls+=("$arg")
|
||||||
|
test -L "$arg" || continue
|
||||||
|
;;
|
||||||
(*)
|
(*)
|
||||||
case "$(file "$arg")" in
|
case "$(file "$arg")" in
|
||||||
(*\ ?udio*)
|
(*\ ?udio*)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
case "$1" in ([0-9]) depth=$1; shift;; esac
|
case "$1" in ([0-9]) depth=$1; shift;; esac
|
||||||
for f in "${@-.}"
|
for f in "${@-.}"
|
||||||
do
|
do
|
||||||
test -w "$f" && elevate="" || elevate=sudo
|
test -w "$(dirname "$f")" && elevate="" || elevate=sudo
|
||||||
if test -d "$f"
|
if test -d "$f"
|
||||||
then
|
then
|
||||||
if test -e "$f/.git" || test -e "$f/packed-refs"
|
if test -e "$f/.git" || test -e "$f/packed-refs"
|
||||||
|
|
Loading…
Reference in New Issue