summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-19 13:55:29 +0800
committerOpportunityLiu <[email protected]>2019-07-19 13:55:29 +0800
commitff0595d384a9b4e7656e0c44f327f7614e2a8fd6 (patch)
tree4e27349474f1c0b485b97607e8c54aaef8ec2394 /scripts
parentf5e728f9e3e9dc829a87b62b4025cf2259576878 (diff)
improve scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/brew-pr2
-rw-r--r--scripts/get.ps12
-rwxr-xr-xscripts/get.sh4
-rwxr-xr-xscripts/makepkg2
-rwxr-xr-xscripts/makeppa2
-rwxr-xr-xscripts/makeself/build-runfile.sh2
6 files changed, 7 insertions, 7 deletions
diff --git a/scripts/brew-pr b/scripts/brew-pr
index 79a179e6c..41c6e5595 100755
--- a/scripts/brew-pr
+++ b/scripts/brew-pr
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/usr/bin/env bash
brew bump-formula-pr --url=https://github.com/xmake-io/xmake/archive/v2.2.7.tar.gz --sha256=be6845b641ee754ae1d0fbe7f369811d8a99a93c82843cb6be3437d1b664e9f5 xmake
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index d3deefc56..28be8f382 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -1,4 +1,4 @@
-#! /usr/bin/pwsh
+#!/usr/bin/env pwsh
#Requires -version 5
# xmake getter
diff --git a/scripts/get.sh b/scripts/get.sh
index 8e1afdf74..406f952bc 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# xmake getter
# usage: bash <(curl -s <my location>) [[mirror:]branch] [commit/__install_only__]
@@ -183,7 +183,7 @@ fi
if [[ "$SHELL" = */zsh ]]; then write_profile ~/.zshrc
elif [[ "$SHELL" = */ksh ]]; then write_profile ~/.kshrc
elif [[ "$SHELL" = */bash ]]; then write_profile ~/.bashrc
- else write_profile ~/.bash_profile
+ else write_profile ~/.profile
fi
}
diff --git a/scripts/makepkg b/scripts/makepkg
index 6703706ba..1868cf760 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# install fpm
#
diff --git a/scripts/makeppa b/scripts/makeppa
index e95d55019..8da0d67e9 100755
--- a/scripts/makeppa
+++ b/scripts/makeppa
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# check
if [ $# -lt 1 ]; then
diff --git a/scripts/makeself/build-runfile.sh b/scripts/makeself/build-runfile.sh
index 56eca4c4e..76dc609a9 100755
--- a/scripts/makeself/build-runfile.sh
+++ b/scripts/makeself/build-runfile.sh
@@ -1,4 +1,4 @@
-#! /usr/bin/env bash
+#!/usr/bin/env bash
# path constants
cd "$(dirname "$0")/../.."