aboutsummaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/mpd_show.sh2
-rwxr-xr-x.local/bin/unmount_usb.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/mpd_show.sh b/.local/bin/mpd_show.sh
index 8d14a1d..1d0629a 100755
--- a/.local/bin/mpd_show.sh
+++ b/.local/bin/mpd_show.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
raw="$(mpc)"
song=$(echo "$raw" | sed -n '1p')
diff --git a/.local/bin/unmount_usb.sh b/.local/bin/unmount_usb.sh
index c90dde4..764365c 100755
--- a/.local/bin/unmount_usb.sh
+++ b/.local/bin/unmount_usb.sh
@@ -1,4 +1,5 @@
-#!/bin/bash
+#!/usr/bin/env bash
+
options=$(lsblk | grep /media/$USER | rev | cut -d ' ' -f 1 | rev)
[ -n "$options" ] && opt_num=$(echo "$options" | wc -l) || opt_num=0
if [ $opt_num == 0 ]; then