make shell scripts more POSIX-compatible, and use tabs instead of spaces
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/bash
|
||||
|
||||
BUILD_CONFIG=
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/sh
|
||||
sudo "$XDG_DATA_HOME/cpusetcores" "$@" -v
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/sh
|
||||
"$HOME/.local/share/emsdk/upstream/emscripten/emcc" "$@"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/sh
|
||||
"$HOME/.local/share/emsdk/emsdk" "$@"
|
||||
|
||||
@@ -1,17 +1,11 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/sh
|
||||
if [ -z ${1+x} ]; then
|
||||
echo -e "\033[91mdidn't include a file exstension. (eg. \".cs\")"
|
||||
exit -1
|
||||
printf "\033[91mdidn't include a file exstension. (eg. \".cs\")\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# get all the files with the file extension
|
||||
git ls-files | grep -E ".*\\$1" |
|
||||
|
||||
# run git blame on each file, which shows the commit for each line
|
||||
xargs -n 1 git blame --line-porcelain |
|
||||
|
||||
# aquire the authors of this output and sort it
|
||||
grep "^author " | sort |
|
||||
|
||||
# count all the unique authors and sort by number
|
||||
uniq -c | sort -nr
|
||||
xargs -n 1 git blame --line-porcelain | # run git blame on each file, which shows the commit for each line
|
||||
grep "^author " | sort | # aquire the authors of this output and sort it
|
||||
uniq -c | sort -nr # count all the unique authors and sort by number
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/sh
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/sh
|
||||
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/bash
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
|
||||
# set -xv
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
#/bin/bash
|
||||
#!/usr/bin/sh
|
||||
|
||||
if [ -z ${var+2} ]; then
|
||||
echo -e "\033[91mno parameters were given!\033[0m"
|
||||
printf "\033[91mno parameters were given!\033[0m\n"
|
||||
fi
|
||||
|
||||
for i in $2; do
|
||||
readonly fname="$(basename $i .*)"
|
||||
readonly fname
|
||||
fname="$(basename "$i" .*)"
|
||||
mkdir "$fname"
|
||||
cd "$fname"
|
||||
cd "$fname" || return 1
|
||||
unzip "../$i"
|
||||
cd -
|
||||
cd - || return 1
|
||||
done
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/sh
|
||||
|
||||
while true; do
|
||||
printf "owo "
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/sh
|
||||
|
||||
WIN=$(xdotool getwindowfocus)
|
||||
STATE=$(xprop -id "$WIN" _NET_WM_STATE)
|
||||
|
||||
Reference in New Issue
Block a user