summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Lüdecke2016-01-14 18:03:26 +0100
committerMoritz Lüdecke2016-01-14 18:03:26 +0100
commitcb1f264b19ef09f8e5a791e28bd25ca40c09ee76 (patch)
tree65413955e420dbb86706495fadeb59f11f31d938
parenta9a01714a8880454345fe4104a75be522b585f5b (diff)
downloadaur-cb1f264b19ef09f8e5a791e28bd25ca40c09ee76.tar.gz
Fix installation conflicts
-rwxr-xr-xdup55
1 files changed, 0 insertions, 55 deletions
diff --git a/dup b/dup
deleted file mode 100755
index a6e9d5f6e06a..000000000000
--- a/dup
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-DF="/usr/bin/df"
-DU="/usr/bin/du"
-
-usage() {
- echo 'usage: dup [OPTION] DEVICE...'
- echo
- echo ' -p print given prefix at the begin of each line'
- echo ' -h display this help and exit'
- exit
-}
-
-while getopts ":hp:" optname; do
- case "$optname" in
- "p")
- prefix=$OPTARG
- ;;
- "h")
- usage
- ;;
- "?")
- echo "Unknown option $OPTARG"
- usage
- ;;
- ":")
- echo "No argument value for option $OPTARG"
- ;;
- *)
- echo "Unknown error while processing options"
- ;;
- esac
-done
-
-IFS=$"NUL"
-declare -a args=${@:$OPTIND}
-[[ ${args:0} ]] || args="."
-
-for device in $args; do
- if ! [[ "$($DU "$device")" ]]; then
- usage
- fi
-done
-
-for device in $args; do
- size="$($DF "$device" --output=size | tail --lines=+2)"
- used="$($DU -s "$device" | tr '\t' '\n' | head --lines=1)"
-
- usedh="$($DU -sh "$device" | tr '\t' '\n' | head --lines=1)"
- sizeh="$($DF -h "$device" --output=size | tail --lines=+2)"
- misc="$usedh$sizeh"
- title="$prefix$device"
-
- pbar -n $used $size "$title" "$misc"
-done