config: script fixes

This commit is contained in:
xeruf 2022-01-25 13:55:23 +01:00
parent 1f2b734fd7
commit 31528e0d93
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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*)

View File

@ -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"