commit d197e06aee5ac7392d73f9ea700e32b7d8d8031a
parent 394bd2b3bd1eea392d0a7f0c50f4eb5058d7897b
Author: GeaRSiX <gearsix@tuta.io>
Date: Thu, 16 Jan 2020 20:20:32 +0000
bugfix in xopen
Diffstat:
2 files changed, 4 insertions(+), 24 deletions(-)
diff --git a/install b/install
@@ -69,6 +69,9 @@ install_yn () {
#------
# MAIN
#------
+echo "==========="
+echo " g6scripts "
+echo "==========="
## parse args
while [[ $# -gt 0 ]]; do
case $1 in
@@ -94,9 +97,6 @@ while [[ $# -gt 0 ]]; do
;;
esac
done
-echo "==========="
-echo " g6scripts "
-echo "==========="
echo ""
echo "installation"
echo "------------"
diff --git a/src/xopen.sh b/src/xopen.sh
@@ -3,24 +3,4 @@
# description: open file in xserver (doesn't support multiple files at once yet)
# ARGUMENTS: -q, --quiet send stdout to /dev/null
-# variables
-quiet=0
-args=()
-
-# parse args
-while [[ $# -gt 0 ]]; do
- case $1 in
- -q|--quiet)
- quiet=1
- shift
- ;;
- esac
-done
-
-# main
-args=( "$@" )
-if [[ $quiet -eq 0 ]]; then
- xdg-open $args
-else
- xdg-open $args &>/dev/null
-fi
+xdg-open $@ &>/dev/null