Skip to content

Commit 272ce63

Browse files
committed
Update system package manager commands for Linux and macOS
1 parent 9b460ca commit 272ce63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.zshrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ dotfiles() {
4242
}
4343

4444
update() {
45-
if [ "$(uname)" == "Linux" ]; then
45+
if [[ "$(uname)" == "Linux" ]]; then
4646
sudo apt update
4747
sudo apt upgrade -y
4848
sudo do-release-upgrade
4949
sudo apt autoremove -y
50-
elif [ "$(uname)" == "Darwin" ]; then
50+
elif [[ "$(uname)" == "Darwin" ]]; then
5151
brew update
5252
brew upgrade
5353
brew cleanup

0 commit comments

Comments
 (0)