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
:after ox)
(use-package! ox-extra
:after ox
:config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline

View File

@ -79,7 +79,9 @@ for arg; do
(*\ image/*)
timg+=("$arg"); continue;;
(*\ inode/directory\;*)
ls+=("$arg"); continue;;
ls+=("$arg")
test -L "$arg" || continue
;;
(*)
case "$(file "$arg")" in
(*\ ?udio*)

View File

@ -3,7 +3,7 @@
case "$1" in ([0-9]) depth=$1; shift;; esac
for f in "${@-.}"
do
test -w "$f" && elevate="" || elevate=sudo
test -w "$(dirname "$f")" && elevate="" || elevate=sudo
if test -d "$f"
then
if test -e "$f/.git" || test -e "$f/packed-refs"